@charset "UTF-8";
/*
Theme Name: Cocoon Child
Description: Cocoon child theme
Theme URI: https://wp-cocoon.com/
Author: yhira
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* ============================================================
   現場のIT カラースキーム
   デジタル庁デザインシステム準拠。キーカラーは Blue。
   カテゴリごとに色を変え、色だけに頼らずラベル文字も併記する。
   ============================================================ */

:root {
  --gb-blue-50:   #D9E6FF;
  --gb-blue-200:  #C5D7FB;
  --gb-blue-400:  #7096F8;
  --gb-blue-600:  #3460FB;
  --gb-blue-900:  #0017C1;
  --gb-blue-1200: #000060;

  --gb-red-600:   #FE3939;
  --gb-cyan-600:  #00A3BF;
  --gb-green-600: #259D63;
  --gb-orange-600:#FB5B01;

  --gb-text:      #1A1A1A;
  --gb-label:     #626264;
  --gb-line:      #E3E3E8;
  --gb-bg:        #F8F8FB;
}

body {
  background-color: var(--gb-bg);
  color: var(--gb-text);
}

.entry-content,
.article p,
.article li {
  line-height: 2.0;
}

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.header,
#header,
.header-container {
  background: linear-gradient(135deg, var(--gb-blue-1200) 0%, var(--gb-blue-900) 55%, var(--gb-blue-600) 100%) !important;
  color: #fff !important;
}
.header .site-name-text,
.header .site-name-text-link,
#header .site-name-text,
.tagline {
  color: #fff !important;
}
.site-name-text {
  font-weight: 700;
  letter-spacing: .04em;
}
.tagline {
  opacity: .92;
  font-size: 13px;
}
.navi,
#navi,
.navi-in > ul {
  background: var(--gb-blue-1200) !important;
}
.navi-in a,
.navi-in > ul > li > a {
  color: #fff !important;
}
.navi-in > ul > li > a:hover {
  background: var(--gb-blue-600) !important;
}

/* ------------------------------------------------------------
   記事一覧カード
   ------------------------------------------------------------ */
.entry-card-wrap,
.related-entry-card-wrap {
  background: #fff;
  border: 1px solid var(--gb-line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.entry-card-wrap:hover,
.related-entry-card-wrap:hover {
  border-color: var(--gb-blue-400);
  box-shadow: 0 4px 14px rgba(52, 96, 251, .14);
  transform: translateY(-2px);
  background: #fff;
}
.entry-card-title,
.related-entry-card-title {
  color: var(--gb-blue-1200);
  font-weight: 700;
  line-height: 1.6;
}
.entry-card-snippet {
  color: var(--gb-label);
}
.entry-card-meta .post-date,
.entry-card-meta .post-update {
  color: var(--gb-label);
}

/* アイキャッチが無い記事のプレースホルダーを、無地の灰色ではなく
   キーカラーの淡いグラデーションにする */
.no-image,
.no-image-thumb,
.entry-card-thumb .no-image {
  background: linear-gradient(135deg, var(--gb-blue-50) 0%, var(--gb-blue-200) 100%) !important;
  color: var(--gb-blue-900) !important;
  border-radius: 8px;
}
.entry-card-thumb img,
.related-entry-card-thumb img,
.eye-catch img {
  border-radius: 8px;
}

/* ------------------------------------------------------------
   カテゴリラベル（色と文字の両方で識別できるようにする）
   ------------------------------------------------------------ */
.cat-label {
  border: none !important;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 8px;
  background: var(--gb-label);
  color: #fff;
}
/* Cocoon はカテゴリのスラッグではなく term_id をクラス名にする */
.cat-label-2 { background: var(--gb-red-600) !important; }    /* セキュリティ */
.cat-label-4 { background: var(--gb-blue-600) !important; }   /* ネットワーク */
.cat-label-3 { background: var(--gb-cyan-600) !important; }   /* サーバー・NAS */
.cat-label-6 { background: var(--gb-green-600) !important; }  /* 社内の仕組み */
.cat-label-5 { background: var(--gb-orange-600) !important; } /* パソコン・機器 */

/* ------------------------------------------------------------
   本文の見出し
   ------------------------------------------------------------ */
.entry-content h2 {
  background: linear-gradient(90deg, var(--gb-blue-50) 0%, rgba(217,230,255,0) 100%);
  border: none;
  border-left: 6px solid var(--gb-blue-600);
  border-radius: 0 6px 6px 0;
  color: var(--gb-blue-1200);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.55;
  margin: 2.4em 0 1em;
  padding: .7em .8em;
}
.entry-content h3 {
  border: none;
  border-bottom: 3px solid var(--gb-blue-200);
  color: var(--gb-blue-900);
  font-size: 1.15em;
  font-weight: 700;
  margin: 2em 0 .9em;
  padding: 0 0 .4em;
}
.entry-content h4 {
  border: none;
  border-left: 4px solid var(--gb-blue-400);
  color: var(--gb-text);
  font-weight: 700;
  margin: 1.8em 0 .7em;
  padding-left: .6em;
}

.entry-content a {
  color: var(--gb-blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--gb-blue-900); }

/* ------------------------------------------------------------
   表（切り分け表を読みやすく。横幅は必ずスクロールさせる）
   ------------------------------------------------------------ */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
  overflow-x: auto;
}
.entry-content table {
  border-collapse: collapse;
  font-size: .95em;
  min-width: 480px;
  width: 100%;
}
.entry-content table th {
  background: var(--gb-blue-900);
  border: 1px solid var(--gb-blue-900);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
}
.entry-content table td {
  border: 1px solid var(--gb-line);
  padding: 10px 12px;
  vertical-align: top;
}
.entry-content table tbody tr:nth-child(odd)  { background: #fff; }
.entry-content table tbody tr:nth-child(even) { background: var(--gb-bg); }

/* ------------------------------------------------------------
   リスト・引用・強調
   ------------------------------------------------------------ */
.entry-content ul li,
.entry-content ol li {
  margin-bottom: .5em;
}
.entry-content ul li::marker { color: var(--gb-blue-600); }
.entry-content ol li::marker { color: var(--gb-blue-600); font-weight: 700; }

.entry-content blockquote {
  background: var(--gb-blue-50);
  border: none;
  border-left: 5px solid var(--gb-blue-400);
  border-radius: 0 8px 8px 0;
  color: var(--gb-text);
  margin: 1.6em 0;
  padding: 1em 1.2em;
}

.entry-content strong {
  background: linear-gradient(transparent 62%, var(--gb-blue-200) 62%);
  font-weight: 700;
}

/* ------------------------------------------------------------
   広告（PR）ブロック
   ------------------------------------------------------------ */
.entry-content .wp-block-html > div {
  border-color: var(--gb-blue-200) !important;
}
.entry-content .wp-block-html a {
  font-weight: 700;
}
.genba-ad-notice a:hover { color: var(--gb-blue-900); }

/* ------------------------------------------------------------
   サイドバー・フッター
   ------------------------------------------------------------ */
.sidebar h3,
.sidebar .widget-sidebar-title {
  background: var(--gb-blue-900);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1em;
  padding: .6em .8em;
}
.footer,
#footer,
.footer-bottom {
  background: var(--gb-blue-1200) !important;
  color: #fff !important;
}
.footer a,
#footer a,
.footer-bottom a {
  color: var(--gb-blue-200) !important;
}

.pagination .current,
.page-numbers.current {
  background: var(--gb-blue-600) !important;
  border-color: var(--gb-blue-600) !important;
  color: #fff !important;
}

/* ------------------------------------------------------------
   スマホ
   ------------------------------------------------------------ */
@media screen and (max-width: 834px) {
  .entry-content h2 { font-size: 1.2em; }
  .entry-content h3 { font-size: 1.08em; }
  .entry-card-wrap  { padding: 12px; }
  .entry-content, .article p, .article li { line-height: 1.95; }
}

/* ------------------------------------------------------------
   ヘッダー（作り込み版 2026-10-20）
   ・画像を使わずCSSだけで、奥行きのある紺＋細い格子＋発光を出す
   ・サイト名の前にネットワークの記号（SVG）を置く
   ------------------------------------------------------------ */
.header,
#header,
.header-container {
  position: relative;
  background:
    radial-gradient(760px 320px at 50% -34%, rgba(85,135,255,.55), rgba(85,135,255,0) 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, rgba(255,255,255,0) 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, rgba(255,255,255,0) 1px 56px),
    linear-gradient(140deg, #000042 0%, #000060 38%, #0017C1 78%, #2a52e0 100%) !important;
  overflow: hidden;
}
/* 最上部のアクセント線 */
.header-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #99F2FF 0%, #3460FB 42%, #0017C1 100%);
  z-index: 2;
}
/* 右上にうっすら光を置いて平板さを消す */
.header::after {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(43,200,228,.22), rgba(43,200,228,0) 68%);
  pointer-events: none;
}
#header-in,
.header-in {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 26px;
}

/* キャッチフレーズ：両側に細線を添える */
.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: 12.5px;
  letter-spacing: .14em;
  opacity: .9;
}
.tagline::before,
.tagline::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5));
}
.tagline::after {
  background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,0));
}

/* サイト名 */
.logo-header,
.logo-text {
  margin: 0;
}
.site-name-text {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .18em;
  text-indent: .18em;
  text-shadow: 0 0 26px rgba(130,175,255,.55), 0 2px 10px rgba(0,0,0,.3);
}
.site-name-text::before {
  content: "";
  width: 1.05em;
  height: 1.05em;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399F2FF' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='4.2' r='2.3'/%3E%3Ccircle cx='4.6' cy='19.4' r='2.3'/%3E%3Ccircle cx='19.4' cy='19.4' r='2.3'/%3E%3Cpath d='M12 6.5v4.6M4.6 17.1v-6h14.8v6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(43,200,228,.75));
}
/* サイト名の下に短いアクセント線 */
.logo-header .site-name::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #99F2FF, #3460FB);
}
.header .site-name-text-link:hover .site-name-text {
  opacity: .92;
}

@media screen and (max-width: 834px) {
  #header-in,
  .header-in { padding-top: 20px; padding-bottom: 20px; }
  .site-name-text { font-size: 27px; letter-spacing: .14em; text-indent: .14em; }
  .tagline { font-size: 11px; letter-spacing: .08em; gap: 10px; padding: 0 12px; }
  .logo-header .site-name::after { width: 52px; margin-top: 11px; }
}

/* ロゴ周りの余白を詰める（Cocoon既定の padding 20px/30px を打ち消す） */
.logo-header,
.logo-text,
.header .logo-header {
  padding-top: 2px !important;
  padding-bottom: 6px !important;
}
