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

/* =============================================================================
   Variables
   ============================================================================= */
:root {
  --dark: #0d1117;
  --dark-border: #30363d;
  --dark-surface: #161b22;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --text: #24292f;
  --text-sub: #656d76;
  --text-muted: #8b949e;
  --bg: #f6f8fa;
  --card: #ffffff;
  --border: #d0d7de;
  --heading-bg: #f0f7ff;
  --code-bg: #0d1117;
  --content-width: 720px;
}

/* =============================================================================
   レイアウト: 1カラム化
   ============================================================================= */
/* サイドバー非表示 */
.sidebar,
.sidebar-menu-content,
#sidebar {
  display: none !important;
}

/* メインを全幅化 */
.content-in {
  display: block;
}
.main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  float: none;
}

/* 記事本文の最大幅 */
.article,
.entry-content,
.content {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* 記事一覧の最大幅 */
.list,
.list-columns {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Cocoon 2カラム幅の上書き */
.no-sidebar .main,
.content-in .main {
  width: 100%;
  max-width: 100%;
}

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

/* =============================================================================
   ヘッダー: コンパクト・横並び
   ============================================================================= */
.header {
  background-color: var(--dark);
  border-bottom: 1px solid var(--dark-border);
  height: 60px;
  min-height: 60px;
}
.header-container,
.header-container-in {
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* サイト名: 左寄せ */
.logo-header,
.site-name-text-link {
  display: flex;
  align-items: center;
  margin: 0;
}
.site-name-text,
.site-name-text a {
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.site-name-text a:hover {
  color: var(--accent);
}

/* キャッチフレーズ非表示 */
.tagline,
.site-description {
  display: none;
}

/* ロゴ画像がある場合の調整 */
.logo-header img {
  height: 32px;
  width: auto;
}

/* ナビ: 右寄せ・フラット */
.navi,
.navi-in {
  background-color: transparent;
  height: auto;
}
.navi-in {
  display: flex;
  align-items: center;
}
.navi-in > .menu-mobile {
  display: flex;
  gap: 4px;
}
.navi-in a {
  color: #c9d1d9;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border-bottom: none;
  transition: color 0.15s, background-color 0.15s;
}
.navi-in a:hover {
  color: #fff;
  background-color: rgba(88, 166, 255, 0.1);
}
.navi-in > .menu-mobile > .current-menu-item > a,
.navi-in > .menu-mobile > .current_page_item > a {
  color: #fff;
  background-color: rgba(88, 166, 255, 0.15);
}

/* ヘッダー内の余分な要素を非表示 */
.header .appeal,
.header .header-top {
  display: none;
}

/* =============================================================================
   ヒーローセクション
   ============================================================================= */
.hero-section {
  background: var(--dark);
  border-bottom: 1px solid var(--dark-border);
  padding: 64px 24px;
  text-align: center;
}
.hero-inner {
  max-width: 600px;
  margin: 0 auto;
}
.hero-title {
  color: #fff;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero-btn {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
}
.hero-btn:hover {
  background-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* NOT FOUND 非表示 (記事0件時) */
.not-found,
.list-title {
  display: none;
}

/* =============================================================================
   フォント
   ============================================================================= */
body,
.entry-content,
.article p {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
}
h1, h2, h3, .entry-title, .article-title {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}
code, pre, .article pre code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* =============================================================================
   記事一覧カード
   ============================================================================= */
.ect-vertical-card .entry-card-wrap,
.entry-card-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
.ect-vertical-card .entry-card-wrap:hover,
.entry-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.entry-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-card-content {
  padding: 16px 20px;
}
.entry-card-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.entry-card-snippet {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.6;
}
.entry-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.cat-label {
  background-color: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
}

/* =============================================================================
   記事本文
   ============================================================================= */
.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

/* リンク */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.entry-content a {
  text-underline-offset: 3px;
}

/* 見出し */
.article h2 {
  font-weight: 700;
  font-size: 1.4em;
  color: var(--text);
  background-color: var(--heading-bg);
  border: none;
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 2em 0 1em;
  border-radius: 0 4px 4px 0;
}
.article h3 {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--text);
  border-bottom: 2px solid #e6edf3;
  padding-bottom: 8px;
  margin: 1.5em 0 0.8em;
  background: none;
  border-left: none;
}
.article h4 {
  font-weight: 700;
  font-size: 1.05em;
  margin: 1.2em 0 0.6em;
}

/* 目次 */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.toc-title {
  color: var(--text);
  font-weight: 700;
}
.toc a { color: var(--text-sub); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* =============================================================================
   コードブロック
   ============================================================================= */
.article pre,
.entry-content pre {
  background: var(--code-bg);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: 0;
  overflow: hidden;
}
.article pre code {
  font-size: 14px;
  line-height: 1.6;
}

/* Prism ツールバー */
div.code-toolbar > .toolbar {
  top: 8px;
  right: 8px;
  opacity: 1;
}
div.code-toolbar > .toolbar > .toolbar-item > span,
div.code-toolbar > .toolbar > .toolbar-item > button {
  background: #21262d;
  color: #c9d1d9;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--dark-border);
  box-shadow: none;
}
div.code-toolbar > .toolbar > .toolbar-item > button:hover {
  background: #30363d;
  color: #fff;
}

/* インラインコード */
.article p > code,
.article li > code,
.entry-content p > code,
.entry-content li > code {
  background-color: #eff5fd;
  color: #0550ae;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid #d0d7de;
}

/* =============================================================================
   フッター
   ============================================================================= */
.footer {
  background-color: var(--dark);
  border-top: 1px solid var(--dark-border);
  height: 60px;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.copyright {
  color: var(--text-muted);
  font-size: 13px;
}
.copyright a {
  color: var(--text-muted);
}
/* フッターの余分な要素を非表示 */
.footer-bottom-logo,
.footer-bottom-content,
.navi-footer-in,
.footer-left,
.footer-center,
.footer-right {
  display: none;
}

/* =============================================================================
   ボタン・タグ
   ============================================================================= */
.btn-wrap a,
.pagination .current {
  background-color: var(--accent);
  color: #fff;
  border-radius: 6px;
  border: none;
}
.btn-wrap a:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
}
.tag-link,
.entry-categories-link a {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}
.tag-link:hover,
.entry-categories-link a:hover {
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* スクロールトップ */
.go-to-top-button {
  background-color: var(--dark-surface);
  color: #c9d1d9;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
}

/* SNSボタン */
.ss-top .sns-share-message,
.ss-bottom .sns-share-message {
  color: var(--text-sub);
  font-size: 13px;
}

/* =============================================================================
   レスポンシブ
   ============================================================================= */
@media screen and (max-width: 834px) {
  .header-container-in {
    padding: 0 16px;
  }
  .site-name-text,
  .site-name-text a {
    font-size: 18px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-sub {
    font-size: 14px;
  }
  .hero-section {
    padding: 48px 20px;
  }
  .article h2 {
    font-size: 1.2em;
    padding: 10px 16px;
  }
}

@media screen and (max-width: 480px) {
  .site-name-text,
  .site-name-text a {
    font-size: 16px;
  }
  .hero-title {
    font-size: 22px;
  }
  .entry-content {
    font-size: 15px;
    line-height: 1.8;
  }
  .article pre code {
    font-size: 12px;
  }
  .navi-in a {
    font-size: 12px;
    padding: 6px 8px;
  }
}
