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

/****************************************
** アナゴさんの休日 モダンデザイン v2
** Navy Blue + Coral Orange
****************************************/

:root {
  --primary: #1B2A4A;
  --primary-light: #2D4A7A;
  --accent: #FF6B35;
  --accent-hover: #E85A2A;
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --text: #2D3748;
  --text-light: #718096;
  --border: #E2E8F0;
  --subtle: #F7FAFC;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-name-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .02em;
}

.tagline {
  color: var(--text-light);
  font-size: .85rem;
}

.header-container-in {
  background: var(--card-bg);
  border-bottom: 3px solid var(--accent);
}

/* ===== NAVIGATION ===== */
.navi-in > ul > li > a {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 18px;
  transition: color .2s, background .2s;
  border-radius: 6px;
}
.navi-in > ul > li > a:hover {
  color: var(--card-bg);
  background: var(--primary);
}
.navi-in > ul > .current-menu-item > a {
  color: var(--card-bg);
  background: var(--primary);
}

/* ===== MAIN CONTENT ===== */
.main, .sidebar {
  margin-top: 24px;
}

/* ===== ENTRY CARDS ===== */
.entry-card-wrap {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.entry-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.entry-card-thumb img {
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform .3s ease;
}
.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.03);
}
.entry-card-content {
  padding: 16px 18px;
}
.entry-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
}
.entry-card-snippet {
  color: var(--text-light);
  font-size: .85rem;
  line-height: 1.6;
}
.cat-label {
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 6px 0;
}

/* ===== ARTICLE HEADINGS ===== */
.article h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  margin: 36px 0 20px;
  position: relative;
}
.article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin: 28px 0 16px;
}
.article h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--border);
  margin: 24px 0 12px;
}

/* ===== SIDEBAR ===== */
.sidebar .widget-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: none;
}
.sidebar .widget_title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: none;
}
.author-box .author-name a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}
.author-box .author-description {
  color: var(--text-light);
  font-size: .88rem;
  line-height: 1.7;
}

/* ===== BUTTONS & CTA ===== */
.btn-wrap a, .wp-block-button__link {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(255,107,53,.3);
}
.btn-wrap a:hover, .wp-block-button__link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,107,53,.4);
}
.btn-l a, a.btn {
  background: var(--accent);
  color: #fff !important;
  border-radius: 50px;
  border: none;
}
.btn-l a:hover, a.btn:hover {
  background: var(--accent-hover);
  opacity: 1;
}

/* ===== TOC (Table of Contents) ===== */
.toc {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.toc-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}
.toc a {
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
  transition: color .15s;
}
.toc a:hover {
  color: var(--accent);
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  background: var(--subtle);
  border-left: 4px solid var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  color: var(--text-light);
  font-style: normal;
  margin: 20px 0;
}
blockquote::before {
  color: var(--primary-light);
  opacity: .3;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.8);
}
.footer a {
  color: rgba(255,255,255,.9);
}
.footer a:hover {
  color: var(--accent);
}
.footer-bottom {
  background: #111E36;
  font-size: .8rem;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  font-size: .8rem;
  color: var(--text-light);
  padding: 10px 0;
}
.breadcrumb a {
  color: var(--primary-light);
}

/* ===== PAGINATION ===== */
.pagination .page-numbers {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  transition: all .2s;
}
.pagination .page-numbers:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== SNS BUTTONS ===== */
.sns-share-buttons a, .sns-follow-buttons a {
  border-radius: 8px;
  font-weight: 600;
  transition: opacity .2s;
}
.sns-share-buttons a:hover, .sns-follow-buttons a:hover {
  opacity: .85;
}

/* ===== SCROLL TO TOP ===== */
.go-to-top-button {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow-md);
  transition: background .2s;
}
.go-to-top-button:hover {
  background: var(--accent);
}

/* ===== ARTICLE META ===== */
.article-meta, .entry-date, .update-date {
  color: var(--text-light);
  font-size: .82rem;
}
.post-date, .post-update {
  color: var(--text-light);
}

/* ===== TAG & CATEGORY ===== */
.tag-link, .cat-link {
  background: var(--subtle);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .8rem;
  transition: all .2s;
}
.tag-link:hover, .cat-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== MOBILE MENU ===== */
.menu-button, .mobile-menu-buttons .menu-button {
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1023px) {
  .entry-card-title { font-size: .95rem; }
  .article h1 { font-size: 1.45rem; }
  .article h2 { font-size: 1.2rem; padding: 12px 16px; }
}
@media screen and (max-width: 834px) {
  body { font-size: 15px; }
  .site-name-text { font-size: 1.3rem; }
  .entry-card-content { padding: 12px 14px; }
  .sidebar .widget-sidebar { padding: 16px; }
}
@media screen and (max-width: 480px) {
  body { font-size: 14px; }
  .site-name-text { font-size: 1.1rem; }
  .article h1 { font-size: 1.25rem; }
  .article h2 { font-size: 1.1rem; padding: 10px 14px; }
  .article h3 { font-size: 1rem; }
  .btn-wrap a { padding: 10px 24px; font-size: .9rem; }
  .entry-card-wrap { border-radius: 8px; }
}

/* ===== SILK SKIN OVERRIDE ===== */
.skin-silk .header-container-in,
.header-container-in {
  background: var(--card-bg) !important;
  border-bottom: 3px solid var(--accent) !important;
}
.skin-silk .logo-header,
.logo-header {
  background: transparent !important;
}
.skin-silk .tagline,
.tagline {
  color: var(--text-light) !important;
}
.skin-silk .navi-in,
.navi-in {
  background: transparent !important;
}
.skin-silk .navi-in > ul > li > a,
#navi .navi-in > ul > li > a {
  color: var(--primary) !important;
  font-weight: 600 !important;
}
.skin-silk .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li > a:hover {
  color: #fff !important;
  background: var(--primary) !important;
}

/* Tab index (新着記事 etc) */
.skin-silk .tab-caption,
.tab-caption,
.front-top-page .tab-caption,
.tab-caption-box-label {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.skin-silk .tab-caption::after,
.tab-caption::after {
  border-top-color: var(--primary) !important;
}

/* Widget titles */
.skin-silk .widget_title,
.skin-silk .widget-title,
.widget_title,
.widget-title {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--accent) !important;
  background: none !important;
}
.skin-silk .widget-sidebar,
.widget-sidebar {
  background: var(--card-bg) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

/* Category labels on cards */
.skin-silk .cat-label,
.cat-label {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Header top line / keycolor overrides */
.header, #header {
  background: var(--card-bg) !important;
}
.skin-silk .appeal-in,
.appeal-in {
  background: transparent !important;
}

/* Remove SILK skin colored borders */
.skin-silk .header-container,
.header-container {
  border-top: 3px solid var(--primary) !important;
}

/* Search button */
.skin-silk .search-submit,
.search-submit {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 8px 8px 0 !important;
}

/* Sidebar recent posts / links */
.skin-silk .widget_recent_entries a,
.widget_recent_entries a,
.skin-silk .widget-sidebar a,
.widget-sidebar a {
  color: var(--text) !important;
}
.skin-silk .widget-sidebar a:hover,
.widget-sidebar a:hover {
  color: var(--accent) !important;
}

/* Footer override */
.skin-silk .footer,
.footer,
#footer {
  background: var(--primary) !important;
  color: rgba(255,255,255,.8) !important;
}
.skin-silk .footer a,
.footer a {
  color: rgba(255,255,255,.9) !important;
}

/* Entry card override */
.skin-silk .entry-card-wrap,
.entry-card-wrap {
  background: var(--card-bg) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
.skin-silk .entry-card-title,
.entry-card-title {
  color: var(--primary) !important;
}

/* ===== TAGLINE (キャッチフレーズ) WHITE ===== */
.tagline, .site-name-text-sub, .header-container .tagline,
.skin-silk .tagline, .skin-silk .site-name-text-sub,
#header .tagline, .header .tagline {
  color: #ffffff !important;
}

/* === h2見出し SILK対応修正 === */
.skin-silk .article h2,
.article h2 {
  background: linear-gradient(135deg, #1B2A4A, #2D4A7A) !important;
  color: #fff !important;
  padding: 14px 20px !important;
  border-radius: 8px !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
}
.skin-silk .article h3,
.article h3 {
  color: #1B2A4A !important;
  border-left: 4px solid #FF6B35 !important;
  border-bottom: none !important;
  padding-left: 12px !important;
  background: transparent !important;
}
