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

/************************************
** エアコンナビ：ニュースサイト風
** 白地＋紺(#0d2b4e)＋青(#1565c0)
************************************/
:root {
  --navi-navy: #0d2b4e;
  --navi-blue: #1565c0;
  --navi-sky: #e8f1fb;
  --navi-line: #dde3ea;
  --navi-muted: #5b6b7d;
}

body { color: #1f2933; }
a { color: var(--navi-blue); }

/* ---------- ヘッダー ---------- */
#header-container, #header-container-in, #header, #navi {
  background-color: #fff;
}
#header-container {
  border-top: 4px solid var(--navi-blue);
  border-bottom: 1px solid var(--navi-line);
  box-shadow: 0 1px 4px rgba(13, 43, 78, .06);
}
.header-container-in.hlt-top-menu .logo-header img.header-site-logo-image { max-height: 40px; width: auto; }
.logo-header { padding: 12px 0; }
.footer-site-logo-image { max-height: 36px; width: auto; }
/* メニュー: Cocoonの固定幅(176px)をやめて1行に収める */
#navi .navi-in > ul { flex-wrap: nowrap; }
#navi .navi-in > ul > li { width: auto; flex: 0 0 auto; }
#navi .navi-in > ul > li > a { padding: 0 14px; }
.site-name-text {
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navi-navy);
}
.tagline {
  color: var(--navi-muted);
  font-size: 12px;
}
#navi .navi-in > ul > li > a {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  transition: border-color .15s, color .15s;
}
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a,
#navi .navi-in > ul > li.current-category-ancestor > a {
  background: none;
  color: var(--navi-blue);
  border-bottom-color: var(--navi-blue);
}

/* ---------- メイン・サイドバーの枠 ---------- */
.main, .sidebar {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(13, 43, 78, .06);
}

/* ---------- 一覧の見出し（新着・カテゴリ別） ---------- */
.list-title {
  font-size: 20px;
  margin: 0 0 14px;
  padding: 0 0 8px 12px;
  border-left: 5px solid var(--navi-blue);
  border-bottom: 1px solid var(--navi-line);
  line-height: 1.4;
  background: none;
}
.list-title-in { color: var(--navi-navy); font-weight: 800; }
.list-more-button-wrap .list-more-button {
  border: 1px solid var(--navi-blue);
  color: var(--navi-blue);
  border-radius: 999px;
  padding: 6px 24px;
  font-weight: 700;
}
.list-more-button-wrap .list-more-button:hover {
  background: var(--navi-blue);
  color: #fff;
}

/* ---------- 記事カード ---------- */
.entry-card-wrap {
  border-radius: 6px;
  transition: background-color .15s;
}
.entry-card-wrap:hover { background-color: var(--navi-sky); }
.entry-card-thumb img { border-radius: 4px; }
.entry-card-title, .related-entry-card-title {
  font-weight: 700;
  color: var(--navi-navy);
  line-height: 1.5;
}
.entry-card-meta, .post-date, .post-update { color: var(--navi-muted); }
.cat-label {
  background: var(--navi-navy);
  border: none;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  top: .4em;
  left: .4em;
}

/* ---------- 記事本文 ---------- */
.entry-title, .archive-title {
  color: var(--navi-navy);
  font-weight: 800;
  line-height: 1.5;
}
.article h2 {
  background: none;
  color: var(--navi-navy);
  border-left: 6px solid var(--navi-blue);
  border-bottom: 2px solid var(--navi-line);
  padding: 10px 14px;
  font-size: 22px;
}
.article h3 {
  border: none;
  border-bottom: 2px solid var(--navi-blue);
  padding: 6px 2px;
  color: var(--navi-navy);
}
.article h4 { border: none; color: var(--navi-blue); }
.article table th { background: var(--navi-sky); color: var(--navi-navy); }

/* 記事末尾の相談導線（自動投稿で入れる .navi-cta ボックス） */
.navi-cta {
  margin: 2.5em 0 1em;
  padding: 18px 20px;
  background: var(--navi-sky);
  border: 1px solid #c7dbf2;
  border-radius: 8px;
  font-size: .92em;
}
.navi-cta p { margin: 0 0 .4em; }
.navi-cta p:last-child { margin-bottom: 0; }
.navi-cta a { font-weight: 700; }

/* ---------- サイドバー ---------- */
.sidebar h2, .sidebar h3, .sidebar .widget-title {
  background: none;
  color: var(--navi-navy);
  border-bottom: 2px solid var(--navi-blue);
  padding: 6px 2px;
  font-size: 17px;
}

/* 運営会社ブログの新着（[ks_blog]、クリックでケイズのブログへ） */
.navi-ks-item { display: flex; gap: 10px; text-decoration: none; color: var(--navi-navy); border-radius: 6px; transition: background-color .15s; }
.navi-ks-item:hover { background: var(--navi-sky); color: var(--navi-navy); }
.navi-ks-thumb { flex: 0 0 auto; }
.navi-ks-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; }
.navi-ks-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.navi-ks-title { font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.navi-ks-meta { font-size: 11px; color: var(--navi-muted); }
.navi-ks-blog.is-list .navi-ks-item { padding: 8px 4px; border-bottom: 1px dashed var(--navi-line); }
.navi-ks-blog.is-list .navi-ks-thumb { width: 120px; }
.navi-ks-blog.is-list .navi-ks-title { font-size: 14px; }
.navi-ks-blog.is-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.navi-ks-blog.is-grid .navi-ks-item { flex-direction: column; padding: 6px; }
.navi-ks-blog.is-grid .navi-ks-title { font-size: 15px; }
.navi-ks-more { text-align: right; font-size: 13px; margin: 10px 0 0; }
@media screen and (max-width: 834px) {
  .navi-ks-blog.is-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .navi-ks-blog.is-grid .navi-ks-title { font-size: 14px; }
}

/* ---------- フッター ---------- */
#footer { border-top: 4px solid var(--navi-blue); }
#footer a, .footer-bottom a { color: #fff; }
.navi-footer-in a:hover { color: #9cc7f5; }

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 1023px) {
  /* スマホ・タブレット: メニューは1行の横スクロールに */
  .header-container-in .logo-header img.header-site-logo-image { max-height: 30px; }
  .logo-header { padding: 10px 0 4px; }
  #navi .navi-in > ul.menu-mobile {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #navi .navi-in > ul.menu-mobile::-webkit-scrollbar { display: none; }
  #navi .navi-in > ul.menu-mobile > li { width: auto; flex: 0 0 auto; }
  #navi .navi-in > ul.menu-mobile > li > a { padding: 0 12px; font-size: 14px; white-space: nowrap; }
}

@media screen and (max-width: 834px) {
  .main, .sidebar { border-radius: 0; box-shadow: none; }
  .article h2 { font-size: 19px; }
  .list-title { font-size: 18px; }
}

@media screen and (max-width: 480px) {
  .entry-card-title { font-size: 15px; }
}
