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


/* =========================
   ヘッダー全体をおしゃれ化
========================= */
#header-container,
#header {
  background: linear-gradient(90deg, #f8fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid #dbe7f3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.header-container-in,
.header-in {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-name-text,
.site-name-link {
  font-weight: 700;
  color: #1f2d3d;
  letter-spacing: 0.03em;
}

#navi,
#navi-in,
.navi-in {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

#navi .navi-in > ul,
.navi-in > ul {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

#navi .navi-in a,
.navi-in a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2d3d;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #d7e3f0;
  box-shadow: 0 2px 8px rgba(31, 45, 61, 0.08);
  transition: all 0.25s ease;
}

#navi .navi-in a:hover,
.navi-in a:hover {
  background: #2f6fed;
  color: #ffffff;
  border-color: #2f6fed;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.22);
}

#navi .current-menu-item > a,
#navi .current_page_item > a,
.navi-in .current-menu-item > a,
.navi-in .current_page_item > a {
  background: #1f4fa3;
  color: #ffffff;
  border-color: #1f4fa3;
}

#navi .menu-item-has-children > a::after,
.navi-in .menu-item-has-children > a::after {
  margin-left: 6px;
  font-size: 10px;
}

#navi .navi-in > ul > li:last-child > a,
.navi-in > ul > li:last-child > a {
  background: linear-gradient(135deg, #ff7b54 0%, #ff5f6d 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(255, 95, 109, 0.25);
}

#navi .navi-in > ul > li:last-child > a:hover,
.navi-in > ul > li:last-child > a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media screen and (max-width: 834px) {
  #navi .navi-in a,
  .navi-in a {
    padding: 8px 12px;
    font-size: 13px;
  }

  #navi .navi-in > ul,
  .navi-in > ul {
    gap: 8px;
  }
}

/* ロゴをカードっぽく */
.site-name-text,
.site-name-link {
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: inline-block;
}

#header-container,
#header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* 記事タイトル */
.entry-title,
.article h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.4;
  color: #1f2d3d;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
}

/* タイトル下のアクセントライン */
.entry-title::after,
.article h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #2f6fed, #66a6ff);
  border-radius: 999px;
  margin-top: 14px;
}

/* サイドバーの各ボックス */
.sidebar .widget {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.06);
  border: 1px solid #edf2f7;
}

/* サイドバー見出し */
.sidebar .widget-title {
  font-size: 24px;
  font-weight: 800;
  color: #1f2d3d;
  margin-bottom: 18px;
}

/* 記事本文をカード化 */
.content,
.main,
.main-scroll {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 42px;
  box-shadow: 0 10px 30px rgba(31, 45, 61, 0.06);
  border: 1px solid #edf2f7;
}

/* 本文の読みやすさ改善 */
.entry-content,
.post-content {
  font-size: 18px;
  line-height: 2.05;
  color: #2d3748;
}

/* 段落間 */
.entry-content p,
.post-content p {
  margin-bottom: 1.8em;
}

/* h2 */
.entry-content h2,
.post-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1f2d3d;
  margin-top: 56px;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #eef5ff 0%, #f8fbff 100%);
  border-left: 6px solid #2f6fed;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.08);
}

/* h3 */
.entry-content h3,
.post-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1f2d3d;
  margin-top: 42px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dce8f7;
}

/* =========================
   関連記事
========================= */
.related-entry-card-wrap,
.related-entry-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(31, 45, 61, 0.05);
  transition: all 0.25s ease;
}

.related-entry-card-wrap:hover,
.related-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
}

.related-entry-card-title,
.related-entry-heading,
.related-entry-card-content-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2d3d;
  line-height: 1.5;
}

.related-entry-card-snippet,
.related-entry-snippet {
  font-size: 14px;
  line-height: 1.8;
  color: #5b6777;
}

.related-entry-card-thumb img,
.related-entry-card-avatar img {
  border-radius: 12px;
}

.related-entry-heading,
.related-entry-title {
  font-size: 30px;
  font-weight: 800;
  color: #1f2d3d;
  margin-bottom: 22px;
}

/* =========================
   パンくず
========================= */
.breadcrumb,
.breadcrumbs {
  font-size: 13px;
  color: #7b8794;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.breadcrumb a,
.breadcrumbs a {
  color: #6c7a89;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: #2f6fed;
}
