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

/************************************
** 子テーマ用のスタイルを書く
************************************/
html {
  margin-top: 0 !important;
}
.search-box {
  margin: 0;
}
header input[type=text], input[type=password], input[type=date], input[type=datetime], input[type=email], input[type=number], input[type=search], input[type=tel], input[type=time], input[type=url], textarea, select, .search-edit {
  border: 1px solid #ddd;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  color: #1f191b;
}
header .search-submit {
  top: calc(50% - 0.75rem);
  right: 1rem;
  font-size: 1rem;
  padding: 0;
}
.fas.fa-search {
  color: #F58220;
}
main .search-box {
  width: 100%;
  max-width: 32rem;
  margin: auto;
}
main input[type=text], input[type=password], input[type=date], input[type=datetime], input[type=email], input[type=number], input[type=search], input[type=tel], input[type=time], input[type=url], textarea, select, .search-edit {
  border: none;
  border-radius: 9999px;
  padding: 1.25rem 2rem;
  color: #1f191b;
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
main .search-submit {
  top: calc(50% - 1.5rem);
  right: 2rem;
  font-size: 1.75rem;
  padding: 0;
}
/* --------------- 記事一覧ページのスタイル --------------- */
/* メインコンテンツとサイドバーのレイアウト */
#article-list #sidebar {
  display: block !important;
}

/* 記事カードを2カラムのグリッドレイアウトにする */
.entry-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* サムネイル部分 */
.entry-card-thumb {
  float: none;
  width: 100%;
  position: relative;
}
.carousel-entry-card-thumb, .related-entry-card-thumb, .widget-entry-card-thumb, .entry-card-thumb {
  margin: 0 !important;
}
.entry-card-thumb, .author-thumb, .blogcard-thumbnail, .related-entry-card-thumb, .popular-entry-card-thumb, .new-entry-card-thumb {
  margin: 0 !important;
}
.entry-card-thumb a {
  color: white !important;
}
.entry-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.entry-card-category {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #F58220; /* カテゴリの背景色 */
  color: #fff;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  border-radius: 1rem 0 1rem 0;
}

/* カードのテキスト部分 */
.entry-card-content {
  padding-top: 1rem;
  padding-bottom: 0;
  margin-left: 0 !important;
}
.entry-card-meta {
  position: relative;
  text-align: left;
  font-family: "NEXT ART Bold";
  font-size: 0.9em;
  color: #888;
}
.entry-card-title {
  font-size: 1.125em;
  font-weight: bold;
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

/* 著者情報 */
.entry-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-card-author .avatar {
  border-radius: 50%;
}

/* --------------- 記事詳細ページのスタイル --------------- */
.single .post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}
.single .post-content > * {
  margin-bottom: 1rem;
}
.single .post-content a {
  text-decoration: underline;
  color: #F58220 !important;
}
.single .post-content a:hover {
  opacity: .75;
}
.single .post-content .toc {
  width: 100%;
  border: none;
  background: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin: 1rem 0 2rem;
  font-size: 1rem;
}
.single .post-content .toc-title {
  text-align: left;
}
.single .post-content .toc-content > ol > li,
.single .post-content .toc-content > ol > li > ol > li {
  position: relative;
  padding-left: 1.5rem;
}
.single .post-content .toc-content > ol > li::before {
  content: "●";
  color: #F58220;
  position: absolute;
  left: 0;
}
.single .post-content .toc-content > ol > li a {
  color: #1f191b !important;
  font-weight: 500;
}
.single .post-content .toc-content > ol > li > ol {
  padding-left: 0;
}
.single .post-content .toc-content > ol > li > ol > li::before {
  content: "○";
  color: #F58220;
  position: absolute;
  left: 0;
}
.single .post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin: 0 0 1rem;
}
.single .post-update {
  font-family: "NEXT ART Bold";
  margin: 0;
  padding: 0;
  display: block;
  font-size: 1rem;
}
.single .post-category a {
  background-color: #ef8000;
  color: #fff !important;
  padding: 0.25rem 1rem;
  border-radius: 50vh;
  display: inline-block;
  font-weight: 500;
}
.single .post-tags ul li > a {
  color: #8C8B87 !important;
  font-weight: 500;
}
.single .post-eyecatch img {
  margin: 0 auto;
  border-radius: 1rem;
}
.single .post-author-top img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}
.single .author-avatar img {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  margin: 0 auto;
}
.single .author-description {
  margin-bottom: 0;
}

/* --------------- パートナー一覧のスタイル --------------- */
.partner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.partner-thumb a:hover {
  opacity: .75;
}
.partner-thumb img {
  border: 1px solid;
  border-radius: 1rem;
}
.partner-name {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  font-size: 1.125rem;
}

/* --------------- ライター詳細のスタイル --------------- */
#author-detail .sidebar {
  display: block !important;
}
#author-detail .author-avatar img {
  border-radius: 50%;
  margin: 0 auto;
}
.author-links a {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #fff !important;
}
.author-links a[title="公式サイト"] {
  background: #004098;
}
.author-links a[title="X"] {
  background: #000000;
}
.author-links a[title="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.author-links a[title="Facebook"] {
  background: #1877F2;
}
.author-links a[title="YouTube"] {
  background: #FF0000;
}
.author-links a[title="TikTok"] {
  background: linear-gradient(to right, #00f2ea, #ff0050);
}
.author-links a[title="note"] {
  background: #41C9B4;
}
.author-links a[title="LINE"] {
  background: #06C755;
}
.author-links a[title="Slack"] {
  background: linear-gradient(135deg, #36c5f0, #2eb67d, #ecb22e, #e01e5a);
}

/* --------------- サイドバーのスタイル --------------- */
.sidebar {
  min-width: calc(300px + 2rem);
  width: calc(300px + 2rem);
  padding: 1rem;
  background-color: unset;
}
.sidebar h3 {
  position: relative;
  color: #1E1919;
  background-color: unset;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1.5rem 0 1rem;
  margin: 0;
  border-radius: unset;
  border-bottom: 2px dotted #d1d5db;
}
.widget_popular_entries h3::before,
.widget_new_entries h3::before,
.widget_categories h3::before,
.widget_tag_cloud h3::before {
  content: "● RANKING";
  font-family: "NEXT ART Bold";
  color: #F58220;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  position: absolute;
  top: 0;
  left: 0;
}
.widget_popular_entries h3::before {
  content: "● RANKING";
}
.widget_popular_entries h3::after {
  content: "";
  background: url(/wp-content/themes/cocoon-child-master/assets/images/ico_ranking_yel.svg) no-repeat;
  position: absolute;
  width: 3.5rem;
  aspect-ratio: 215 / 176;
  left: 8.5rem;
  top: 0rem;
  background-size: contain;
  z-index: -1;
}
.widget_new_entries h3::before {
    content: "● NEW ARTICLES";
}
.widget_categories h3::before {
    content: "● CATEGORIES";
}
.widget_tag_cloud h3::before {
    content: "● KEYWORDS";
}
.widget-entry-cards.ranking-visible .no-1 .card-thumb::before,
.widget-entry-cards.ranking-visible .no-2 .card-thumb::before,
.widget-entry-cards.ranking-visible .no-3 .card-thumb::before,
.widget-entry-cards.ranking-visible .no-4 .card-thumb::before,
.widget-entry-cards.ranking-visible .no-5 .card-thumb::before {
  background-color: #FDFDF5;
}
.widget-entry-cards.ranking-visible .card-thumb::before {
  font-family: "WDXL Lubrifont JP N", sans-serif;
  color: #F58220 !important;
  content: counter(p-rank);
  position: absolute;
  top: -0.75rem;
  left: 0;
  width: 1.5rem;
  height: 2rem;
  line-height: 1.5rem;
  color: #fff;
  opacity: 1;
  text-align: center;
  font-size: 1.25rem;
  z-index: 1;
  border-radius: 0 0 0.5rem 0;
}
.widget_popular_entries .widget-entry-cards .a-wrap {
  padding: 1rem 0 0;
  margin-bottom: 0;
}
table tr:nth-of-type(2n+1), .page-numbers.dots, .a-wrap:hover, .pagination a:hover, .pagination-next-link:hover, .widget_recent_entries ul li a:hover, .widget_categories ul li a:hover, .widget_archive ul li a:hover, .widget_pages ul li a:hover, .widget_meta ul li a:hover, .widget_rss ul li a:hover, .widget_nav_menu ul li a:hover, .pager-links a:hover span, .tag-link:hover, .tagcloud a:hover {
  background-color: unset;
}
.widget_popular_entries .widget-entry-cards .a-wrap:hover,
.widget-entry-cards .a-wrap:hover {
  opacity: .75;
}
.widget-entry-card {
  font-size: 1rem;
  position: relative;
  display: flex;
  /* gap: 1rem; */
}
.widget-entry-card-content {
  margin-left: 0;
}
.new-entry-cards {
  margin-top: 1rem;
}
.card-title-bold .card-title {
  /* padding-top: 0.5rem; */
}
.widget-entry-cards figure {
  min-width: 40%;
  width: auto;
  margin-right: 1rem !important;
}
.blogcard-thumbnail img, .card-thumb img {
  aspect-ratio: 3 / 2;
  border-radius: 0.5rem;
}
.widget {
  margin-bottom: 2.25rem !important;
}
.widget_categories ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.widget_categories ul li a {
  background-color: #ef8000;
  color: #fff !important;
  padding: 0.25rem 1rem;
  border-radius: 50vh;
  display: inline-block;
}
.widget_categories ul li a:hover {
  background-color: #ef8000;
  opacity: .6;
}
.widget_tag_cloud > div {
  margin-top: 1rem;
  gap: 0.5rem;
}
.widget_tag_cloud > div > a {
  background-color: #fcf656;
  color: #1f191b !important;
  padding: 0.25rem 0.75rem;
  border-radius: 50vh;
  display: inline-block;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  flex: none;
}
.widget_tag_cloud > div > a:hover {
  background-color: #fcf656;
  opacity: .6;
}
.tagcloud a .tag-caption .tax-icon {
  display: none;
}

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

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

/*768px以下*/
@media screen and (max-width: 768px){
  /*必要ならばここにコードを書く*/
  .single .author-avatar img {
    width: 7.5rem;
    height: 7.5rem;
  }

  .entry-card-thumb img {
    border-radius: 0.5rem;
  }
  .entry-card-category {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.5rem 0 0.5rem 0;
  }

  #author-detail .author-avatar img {
    width: 9rem;
    height: 9rem;
  }
  .partner-list {
    gap: 1.5rem 1rem;
  }
  .partner-thumb img {
    border-radius: 0.5rem;
  }
  .partner-name {
    margin-top: 0.25rem;
    padding-left: 0.25rem;
    font-size: 1rem;
  }
}

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