@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
*/

/************************************
** Buzz-Books ブログ（本体サイト buzz-books.net に合わせたデザイン）
************************************/
:root {
  --bb-blue: #0d6efd;
  --bb-blue2: #00aaff;
  --bb-navy: #1b2a41;
  --bb-text: #222;
  --bb-sub: #555;
  --bb-line: #e8eaf0;
  --bb-pale: #eef4ff;
  --bb-bg: #f6f7fb;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--bb-text);
  background: var(--bb-bg);
  letter-spacing: 0.02em;
}
a { color: var(--bb-blue); }
a:hover { color: #0a58ca; }

/* ---------- header ---------- */
.header-container {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-bar .header-container { top: 32px; }
#header-container,
#header-container .header,
#header-container .navi { background-color: #fff; color: var(--bb-text); }
#header-container .navi-in > ul > li { width: auto; }
#header-container .navi-in > ul > li > a { color: var(--bb-text); }
#header-container .navi-in > ul > li > a:hover { color: var(--bb-blue); }
#navi .navi-in > .menu-header .sub-menu { background-color: #fff; }
.header-container-in.hlt-top-menu .header-in { min-height: 72px; }
.logo-header { padding: 0; }
.logo-header .site-name { display: flex; align-items: center; gap: 10px; }
.logo-header .site-logo-image { height: 34px; width: auto; display: block; }
.logo-header a::after {
  content: "ブログ";
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bb-pale);
  color: #24527f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  vertical-align: middle;
}
.logo-header a { display: inline-flex; align-items: center; }

.navi-in > ul > li > a,
.navi-in > .menu-header > li > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--bb-text);
  padding: 0 12px;
}
.navi-in > ul li a:hover { background: transparent; color: var(--bb-blue); }
.navi-in > ul > li.bb-nav-cta { display: flex; align-items: center; }
#header-container .navi-in > ul > li.bb-nav-cta > a {
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-blue2));
  color: #fff;
  border-radius: 999px;
  height: auto;
  line-height: 1;
  padding: 12px 22px;
  margin-left: 8px;
  transition: 0.2s;
}
#header-container .navi-in > ul > li.bb-nav-cta > a:hover { color: #fff; opacity: 0.85; transform: translateY(-1px); }

/* ---------- layout ---------- */
.content { margin-top: 32px; }
.main {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
}
.sidebar { background: transparent; padding: 0; }
.sidebar .widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
}
.sidebar .widget h2, .sidebar .widget h3,
.sidebar .widget .wp-block-heading {
  background: transparent;
  border-left: 4px solid var(--bb-blue);
  border-radius: 0;
  padding: 2px 0 2px 12px;
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--bb-navy);
}
.sidebar .wp-block-search__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.sidebar .wp-block-search__input { border-radius: 999px 0 0 999px; border-color: #ddd; padding-left: 16px; }
.sidebar .wp-block-search__button { border-radius: 0 999px 999px 0; background: var(--bb-blue); color: #fff; border: none; margin-left: 0; }
.sidebar .wp-block-categories li a,
.sidebar .wp-block-latest-posts li a { color: var(--bb-text); }
.sidebar .wp-block-categories li a:hover,
.sidebar .wp-block-latest-posts li a:hover { color: var(--bb-blue); background: transparent; }
.sidebar .wp-block-latest-posts li { font-size: 14px; line-height: 1.6; padding: 8px 0; border-bottom: 1px dashed var(--bb-line); }
.sidebar .wp-block-latest-posts li:last-child { border-bottom: none; }

/* ---------- entry cards ---------- */
.ect-vertical-card .entry-card-wrap,
.entry-card-wrap {
  border-radius: 14px;
  transition: 0.2s;
}
.ect-vertical-card .entry-card-wrap {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  padding: 0 0 12px;
}
.ect-vertical-card .entry-card-wrap:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.12);
}
.ect-vertical-card .entry-card-thumb { margin-bottom: 12px; }
.ect-vertical-card .entry-card-content { padding: 0 14px; }
.entry-card-title { color: var(--bb-navy); font-weight: 700; line-height: 1.6; }
.entry-card-snippet { color: var(--bb-sub); }
.cat-label {
  background: var(--bb-blue);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  top: 8px;
  left: 8px;
  opacity: 0.95;
}
.eye-catch .cat-label { top: 12px; left: 12px; }
.entry-card-meta, .post-date, .post-update { color: #888; }

/* ---------- article ---------- */
.entry-title { color: var(--bb-navy); font-size: 28px; line-height: 1.5; }
.eye-catch img { border-radius: 12px; }
.main .article h2 {
  background: var(--bb-pale);
  border-left: 6px solid var(--bb-blue);
  border-radius: 8px;
  color: var(--bb-navy);
  font-size: 22px;
  line-height: 1.5;
  padding: 16px 20px;
}
.article h3 {
  border: none;
  border-bottom: 2px solid var(--bb-blue);
  border-radius: 0;
  color: var(--bb-navy);
  font-size: 19px;
  padding: 6px 2px 8px;
}
.article h4 {
  border: none;
  border-left: 4px solid var(--bb-blue);
  padding: 2px 0 2px 12px;
  color: var(--bb-navy);
}
.article ul li::marker { color: var(--bb-blue); }
.article ol li::marker { color: var(--bb-blue); font-weight: 700; }

.toc {
  background: var(--bb-bg);
  border: 1px solid var(--bb-line);
  border-radius: 14px;
  padding: 18px 26px;
}
.toc-title { font-weight: 700; color: var(--bb-navy); }
.toc a { color: var(--bb-text); }
.toc a:hover { color: var(--bb-blue); }

.article table,
.wp-block-table table { border-collapse: collapse; }
.article th,
.article thead td {
  background: var(--bb-pale);
  color: var(--bb-navy);
  font-weight: 700;
}
.article th, .article td { border: 1px solid #dde3ee; padding: 10px 12px; }
.article tr:nth-of-type(2n+1) { background: #fff; }
.article tbody tr:nth-of-type(2n) { background: #fafbfd; }

.article .wp-block-image img,
.article figure img { border-radius: 10px; }
.article .wp-block-image img { border: 1px solid #eee; }

.sns-share-buttons a { border-radius: 10px; }
.date-tags { color: #888; }

/* related & pager */
.related-entry-heading, .comment-title {
  border-left: 5px solid var(--bb-blue);
  padding-left: 12px;
  color: var(--bb-navy);
  background: transparent;
}
.related-entry-card-wrap, .pager-post-navi a {
  border-radius: 12px;
}
.related-entry-card-wrap:hover, .pager-post-navi a:hover { background: var(--bb-bg); }

/* ---------- widgets (Buzz-Books) ---------- */
.bb-side-profile__logo { margin: 4px 0 12px; }
.bb-side-profile__logo img { height: 26px; width: auto; }
.bb-side-profile__lead { font-size: 14px; color: var(--bb-sub); line-height: 1.8; margin-bottom: 14px; }
.bb-side-services { list-style: none; margin: 0 0 16px; padding: 0; }
.bb-side-services li { margin: 0; padding: 0; border-bottom: 1px solid var(--bb-line); }
.bb-side-services li:last-child { border-bottom: none; }
.sidebar .bb-side-services li a {
  display: flex !important; justify-content: space-between; align-items: center;
  padding: 10px 2px; font-size: 14px; color: var(--bb-text); text-decoration: none;
}
.bb-side-services a b { color: var(--bb-blue); font-size: 14px; }
.bb-side-services a:hover span { color: var(--bb-blue); }

.bb-side-profile__btn a, .bb-side-cta__btn a, .bb-foot-contact__btn a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-blue2));
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: 0.2s;
}
.bb-side-profile__btn a:hover, .bb-side-cta__btn a:hover, .bb-foot-contact__btn a:hover {
  color: #fff; opacity: 0.85; transform: translateY(-2px);
}
.bb-side-profile__btn, .bb-side-cta__btn { margin: 0; }

.sidebar-scroll .widget:has(.bb-side-cta) { background: #111; border-color: #111; }
.bb-side-cta__title { color: #fff; font-weight: 700; font-size: 17px; line-height: 1.6; margin-bottom: 10px; }
.bb-side-cta__text { color: #ddd; font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.bb-side-cta__btn a { background: #fff; color: #111; }
.bb-side-cta__btn a:hover { color: #111; }

/* blog top hero */
.widget-index-top { margin-bottom: 24px; }
.bb-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f7fb 0%, #ffffff 100%);
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 40px 36px 34px;
}
.bb-hero::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.16), transparent 70%);
  top: -150px; right: -110px;
}
.bb-hero > * { position: relative; }
.bb-hero__label { color: var(--bb-blue); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 10px; }
.bb-hero__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.35; color: var(--bb-navy); margin: 0 0 14px; }
.bb-hero__lead { color: var(--bb-sub); font-size: 15px; max-width: 640px; margin: 0 0 20px; }
.bb-hero__cats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.bb-hero__cats li { margin: 0; padding: 0; }
.bb-hero__cats a {
  display: inline-block; background: #fff; border: 1px solid #cfe0ff; border-radius: 999px;
  color: #24527f; font-size: 13px; font-weight: 700; padding: 6px 14px; text-decoration: none; transition: 0.2s;
}
.bb-hero__cats a:hover { background: var(--bb-blue); border-color: var(--bb-blue); color: #fff; }
.bb-sp { display: none; }

/* ---------- footer ---------- */
#footer, .footer { background-color: #111; color: #bbb; margin-top: 48px; padding-top: 48px; }
#footer a { color: #ddd; }
#footer a:hover { color: #fff; }
#footer .widget li { margin: 0; }
#footer .widget li a { padding: 4px 0; display: inline-block; }
.footer .widget { color: #bbb; font-size: 14px; }
.bb-foot-about__logo img { height: 24px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; }
.bb-foot-title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.bb-foot-links ul { list-style: none; margin: 0; padding: 0; }
.bb-foot-links li { padding: 3px 0; }
#footer .bb-foot-contact__btn a { background: #fff; color: #111; display: inline-block; padding: 12px 30px; }
#footer .bb-foot-contact__btn a:hover { color: #111; }
.bb-foot-contact__sub a { font-size: 13px; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 24px; padding-top: 20px; }
.footer-bottom-logo { display: none; }
#footer .navi-footer,
#footer .navi-footer-in > .menu-footer li a { background-color: transparent; }
#footer .navi-footer-in > .menu-footer li a { color: #ccc; font-size: 13px; }
.navi-footer-in > .menu-footer li a:hover { color: #fff; background: transparent; }
.navi-footer-in > .menu-footer li { border-left-color: #333; }
.source-org.copyright { color: #888; font-size: 12px; }

/* go to top */
.go-to-top-button { background: var(--bb-blue); color: #fff; border-radius: 50%; }

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .header-container { position: relative; top: 0 !important; }
  #header-container .navi-in > ul > li.bb-nav-cta > a { margin-left: 0; }
  .sidebar { padding: 0; }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .content { margin-top: 16px; }
  .main { border-radius: 14px; }
  .entry-title { font-size: 22px; }
  .article h2 { font-size: 19px; padding: 13px 16px; }
  .article h3 { font-size: 17px; }
  #header .logo-header img.site-logo-image { height: 28px !important; width: auto !important; max-width: none; }
  #header .logo-header { padding: 14px 0 10px; }
  #header .logo-header a::after { margin-left: 8px; font-size: 11px; padding: 1px 8px; }
  #header .logo-header .site-name { justify-content: center; }
  .bb-hero { padding: 28px 20px 24px; }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .bb-sp { display: inline; }
  .bb-hero__title { font-size: 21px; }
  .bb-hero__cats a { font-size: 12px; padding: 5px 12px; }
  .bb-hero__lead { font-size: 14px; }
  .article h2 { font-size: 18px; }
}
