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

/* =====================================================================
   NetWatcher 信頼系テーマ（白基調 + 濃紺 + 青/緑アクセント）
   一般・年配層に向けたセキュリティ商品訴求向けの清潔・信頼デザイン。
   CTA だけ暖色で視線を集める（コンバージョン用）。
   ===================================================================== */
:root {
  --nw-navy: #0f2540;        /* ヘッダー/見出し：知性と信頼 */
  --nw-navy-soft: #16335a;
  --nw-blue: #1f6feb;        /* メインアクセント：リンク/タグ */
  --nw-blue-dark: #1457c4;
  --nw-teal: #12b886;        /* サブアクセント：安全/OK */
  --nw-bg: #ffffff;          /* 本文背景 */
  --nw-soft: #f4f7fb;        /* セクション交互背景 */
  --nw-line: #e3e9f2;        /* 罫線 */
  --nw-ink: #1a2433;         /* 本文テキスト */
  --nw-muted: #5b6675;       /* 補助テキスト */
  --nw-cta: #ff7a18;         /* CTAボタン（暖色） */
  --nw-cta-dark: #e8650a;
  --nw-white: #ffffff;
}

/* ---------- ヘッダー ---------- */
.header-container,
.header-container-in.hlt-top-menu {
  background: var(--nw-navy);
}

.header {
  background:
    linear-gradient(90deg, var(--nw-navy) 0%, var(--nw-navy-soft) 70%, #1a3a66 100%);
  border-bottom: 3px solid var(--nw-teal);
}

.header-in {
  min-height: 72px;
}

.site-name-text-link,
.site-name-text-link:hover {
  color: var(--nw-white);
  font-weight: 800;
  letter-spacing: 0;
}

.site-name-text {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 30px;
  padding-left: 42px;
  line-height: 1;
}

/* ロゴ：盾＋チェックを思わせる青/ティールのマーク */
.site-name-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px 8px 12px 12px / 8px 8px 16px 16px;
  background: linear-gradient(160deg, var(--nw-blue) 0%, var(--nw-teal) 100%);
  box-shadow: 0 6px 16px rgba(18, 184, 134, 0.32);
}

.site-name-text::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 11px;
  border: solid var(--nw-white);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-60%) rotate(40deg);
  pointer-events: none;
}

.tagline {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- グローバルナビ ---------- */
.navi {
  background: var(--nw-white);
  border-top: 1px solid var(--nw-line);
  border-bottom: 1px solid var(--nw-line);
  box-shadow: 0 2px 6px rgba(15, 37, 64, 0.05);
}

.navi-in > ul {
  gap: 2px;
}

.navi-in > ul li {
  width: auto;
  min-width: 132px;
}

.navi-in a {
  color: var(--nw-navy);
  font-weight: 700;
  letter-spacing: 0;
}

.navi-in a:hover,
.navi-in .current-menu-item > a,
.navi-in .current-menu-ancestor > a {
  color: var(--nw-white);
  background: linear-gradient(180deg, var(--nw-blue) 0%, var(--nw-blue-dark) 100%);
}

.navi-in > ul .caption-wrap {
  padding: 0 16px;
}

.navi-in > ul .sub-menu {
  background: var(--nw-white);
  border: 1px solid var(--nw-line);
  border-top: 3px solid var(--nw-blue);
}

.navi-in > ul .sub-menu a {
  color: var(--nw-navy);
}

.navi-in > ul .sub-menu a:hover {
  background: var(--nw-blue);
  color: var(--nw-white);
}

.fixed-header .header-container,
.header-container.fixed-header {
  background: rgba(15, 37, 64, 0.97);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.mobile-menu-buttons,
.mobile-header-menu-buttons {
  background: var(--nw-navy);
  color: var(--nw-white);
}

.mobile-menu-buttons .menu-button,
.mobile-header-menu-buttons .menu-button {
  color: var(--nw-white);
}

.mobile-menu-buttons .menu-button:hover,
.mobile-header-menu-buttons .menu-button:hover {
  background: var(--nw-blue);
}

/* =====================================================================
   フロントページ共通
   ===================================================================== */
.nw-section {
  margin: 0 0 48px;
}

.nw-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--nw-navy);
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 5px solid var(--nw-blue);
  line-height: 1.3;
}

.nw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nw-section-head .nw-section-title {
  margin-bottom: 0;
}

.nw-section-more {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--nw-blue);
  text-decoration: none;
  white-space: nowrap;
}

.nw-section-more:hover {
  color: var(--nw-blue-dark);
  text-decoration: underline;
}

/* ---------- カードグリッド ---------- */
.nw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nw-card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.nw-card {
  background: var(--nw-white);
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 37, 64, 0.12);
}

.nw-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nw-card-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--nw-soft);
  overflow: hidden;
}

.nw-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nw-card-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e7eef8, #f4f7fb);
}

.nw-card-cat,
.nw-hero-cat {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--nw-white);
  background: var(--nw-blue);
  padding: 3px 10px;
  border-radius: 999px;
}

.nw-card-body {
  padding: 14px 14px 16px;
}

.nw-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nw-ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-card-date {
  font-size: 12px;
  color: var(--nw-muted);
}

/* ---------- ヒーロー ---------- */
.nw-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 48px;
}

.nw-hero-main {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  color: var(--nw-white);
  text-decoration: none;
  background: var(--nw-navy);
}

.nw-hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-hero-main-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 37, 64, 0) 35%, rgba(15, 37, 64, 0.85) 100%);
}

.nw-hero-main-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  margin: 8px 0 0;
  color: var(--nw-white);
}

.nw-hero-sub {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}

.nw-hero-sub-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--nw-white);
  border: 1px solid var(--nw-line);
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease;
}

.nw-hero-sub-item:hover {
  border-color: var(--nw-blue);
}

.nw-hero-sub-img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

.nw-hero-sub-body .nw-hero-cat {
  position: static;
  display: inline-block;
  margin-bottom: 4px;
}

.nw-hero-sub-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  color: var(--nw-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================================
   比較記事ハブ（収益導線の中心）
   ===================================================================== */
.nw-compare {
  background: var(--nw-soft);
  border: 1px solid var(--nw-line);
  border-radius: 16px;
  padding: 26px 24px 28px;
  margin-bottom: 48px;
}

.nw-compare-lead {
  font-size: 14px;
  color: var(--nw-muted);
  margin: -6px 0 18px;
}

.nw-compare-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.nw-compare-card {
  display: flex;
  flex-direction: column;
  background: var(--nw-white);
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nw-compare-card:hover {
  transform: translateY(-3px);
  border-color: var(--nw-teal);
  box-shadow: 0 12px 24px rgba(18, 184, 134, 0.16);
}

.nw-compare-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.nw-compare-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--nw-navy);
  margin: 0 0 6px;
}

.nw-compare-desc {
  font-size: 12.5px;
  color: var(--nw-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.nw-compare-cta {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nw-white);
  background: var(--nw-cta);
  padding: 7px 14px;
  border-radius: 999px;
}

.nw-compare-card:hover .nw-compare-cta {
  background: var(--nw-cta-dark);
}

/* 汎用CTAボタン（記事内などでも流用可） */
.nw-cta-btn {
  display: inline-block;
  font-weight: 700;
  color: var(--nw-white) !important;
  background: var(--nw-cta);
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(255, 122, 24, 0.3);
}

.nw-cta-btn:hover {
  background: var(--nw-cta-dark);
}

/* =====================================================================
   人気記事ランキング
   ===================================================================== */
.nw-rank-tabs {
  display: flex;
  gap: 6px;
}

.nw-rank-tab {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nw-muted);
  background: var(--nw-soft);
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
}

.nw-rank-tab.is-active {
  color: var(--nw-white);
  background: var(--nw-blue);
  border-color: var(--nw-blue);
}

.nw-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: opacity 0.15s ease;
}

.nw-rank-list.is-loading {
  opacity: 0.4;
}

.nw-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nw-line);
}

.nw-rank-num {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--nw-white);
  background: var(--nw-muted);
  border-radius: 7px;
}

.nw-rank-1 { background: #f0a500; }
.nw-rank-2 { background: #9aa7b6; }
.nw-rank-3 { background: #c08552; }

.nw-rank-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

.nw-rank-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--nw-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-rank-title:hover {
  color: var(--nw-blue);
}

/* =====================================================================
   信頼バー（E-E-A-T：運営方針・レビュー基準・情報源）
   ===================================================================== */
.nw-trust {
  background: var(--nw-navy);
  border-radius: 16px;
  padding: 26px 24px;
  margin-bottom: 48px;
  color: var(--nw-white);
}

.nw-trust-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--nw-white);
}

.nw-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.nw-trust-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px;
}

.nw-trust-item h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--nw-teal);
}

.nw-trust-item p {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.nw-trust-item a {
  color: var(--nw-white);
  text-decoration: underline;
}

/* =====================================================================
   レスポンシブ
   ===================================================================== */
@media screen and (max-width: 1023px) {
  .nw-compare-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nw-card-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 834px) {
  .header-in {
    min-height: 58px;
  }

  #header .site-name-text,
  .header-container-in.hlt-top-menu .site-name-text {
    font-size: 20px;
  }

  .site-name-text::before {
    width: 24px;
    height: 24px;
  }

  .nw-hero {
    grid-template-columns: 1fr;
  }

  .nw-card-grid,
  .nw-card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .nw-compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nw-trust-grid {
    grid-template-columns: 1fr;
  }

  #navi .navi-in > .menu-mobile li {
    background: var(--nw-white);
    border-bottom: 1px solid var(--nw-line);
  }

  #navi .navi-in > .menu-mobile li a {
    color: var(--nw-navy);
    font-weight: 700;
  }
}

@media screen and (max-width: 480px) {
  .nw-section-title {
    font-size: 19px;
  }

  .nw-card-grid,
  .nw-card-grid--4,
  .nw-compare-grid {
    grid-template-columns: 1fr;
  }

  .nw-hero-main {
    min-height: 220px;
  }
}
