@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（moromuki ガジェットメディア風デザイン）
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** moromuki デザイン（2026-12）
** 配色：紺 #0f172a ／ アクセント シアン #06b6d4
************************************/
:root {
  --mm-navy: #0f172a;
  --mm-navy-2: #1e293b;
  --mm-accent: #06b6d4;
  --mm-accent-dark: #0e7490;
  --mm-bg: #f1f5f9;
  --mm-card: #ffffff;
  --mm-text: #1e293b;
  --mm-muted: #64748b;
  --mm-line: #e2e8f0;
  --mm-radius: 14px;
  --mm-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --mm-shadow-hover: 0 6px 24px rgba(15, 23, 42, .14);
}

body {
  background: var(--mm-bg);
  color: var(--mm-text);
  letter-spacing: .02em;
}

/* ---------- ヘッダー ---------- */
.header-container {
  background: var(--mm-navy);
  border-bottom: 3px solid var(--mm-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.header-container-in.hlt-top-menu {
  max-width: 1180px;
}
.header-container .header,
.header-container .navi,
.header-container .navi-in > ul li {
  background: transparent;
}
.logo-header .site-name-text {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .06em;
  color: #fff;
}
.logo-header .site-name-text::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--mm-accent);
  transform: rotate(45deg) translateY(-3px);
}
.navi-in > ul > li > a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: color .2s;
}
.navi-in > ul > li > a::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 10px;
  height: 2px;
  background: var(--mm-accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.navi-in > ul > li > a:hover,
.navi-in > ul > li.current-menu-item > a {
  color: #fff;
  background: transparent;
}
.navi-in > ul > li > a:hover::after,
.navi-in > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* モバイルヘッダー */
.mobile-header-menu-buttons,
.mobile-footer-menu-buttons {
  background: var(--mm-navy);
  color: #fff;
}
.mobile-header-menu-buttons .menu-button > a,
.mobile-footer-menu-buttons .menu-button > a,
.mobile-header-menu-buttons .menu-button,
.mobile-footer-menu-buttons .menu-button {
  color: #e2e8f0;
}

/* ---------- アピールエリア（トップのヒーロー） ---------- */
.appeal {
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(6, 182, 212, .35), transparent 60%),
    radial-gradient(800px 300px at 0% 120%, rgba(99, 102, 241, .30), transparent 60%),
    var(--mm-navy) !important;
  min-height: 0;
}
.appeal-in {
  min-height: 0;
  padding: 56px 16px 60px;
}
.appeal-content {
  background: transparent;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.appeal-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.appeal-message {
  color: #cbd5e1;
  font-size: 17px;
  margin-bottom: 24px;
}
.appeal-button {
  display: inline-block;
  background: var(--mm-accent) !important;
  color: var(--mm-navy) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 30px;
  box-shadow: 0 6px 20px rgba(6, 182, 212, .35);
  transition: transform .2s, box-shadow .2s;
}
.appeal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, .45);
  opacity: 1;
}

/* ---------- レイアウト ---------- */
.content {
  margin-top: 32px;
}
.content-in.wrap,
.footer-in.wrap {
  max-width: 1180px;
}
.main {
  background: transparent;
  border: none;
  padding: 0;
}
.no-sidebar .main {
  padding: 0;
}
.singular .main,
.page .main {
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  padding: 36px 40px;
}

/* ---------- 記事カード（トップ・カテゴリー・アーカイブ） ---------- */
.ect-vertical-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.ect-vertical-card .entry-card-wrap,
.ect-vertical-card.ect-3-columns .entry-card-wrap,
.ect-vertical-card.ect-2-columns .entry-card-wrap {
  width: auto;
  margin: 0;
  padding: 0;
  background: var(--mm-card);
  border: none;
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.ect-vertical-card .entry-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-hover);
  background: var(--mm-card);
}
.ect-vertical-card .entry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ect-vertical-card .entry-card-thumb {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}
.ect-vertical-card .entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.ect-vertical-card .entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.05);
}
.entry-card-thumb .cat-label {
  top: 12px;
  left: 12px;
  border: none;
  border-radius: 999px;
  background: var(--mm-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 12px;
  opacity: .92;
}
.ect-vertical-card .entry-card-content {
  padding: 16px 18px 14px;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.entry-card-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--mm-navy);
  margin-bottom: 8px;
}
.entry-card-snippet {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--mm-line);
  color: var(--mm-muted);
  font-size: 12px;
  position: static;
  text-align: right;
}

/* ページ送り */
.pagination {
  margin: 40px 0 8px;
}
.pagination .page-numbers {
  border: none;
  border-radius: 10px;
  background: var(--mm-card);
  box-shadow: var(--mm-shadow);
  color: var(--mm-navy);
  font-weight: 600;
}
.pagination .current,
.pagination .page-numbers:hover {
  background: var(--mm-navy);
  color: #fff;
}
.pagination-next-link {
  border: none;
  border-radius: 999px;
  background: var(--mm-navy);
  color: #fff;
  font-weight: 700;
}
.pagination-next-link:hover {
  background: var(--mm-accent);
  color: var(--mm-navy);
}

/* アーカイブ見出し */
.archive-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--mm-navy);
  padding-left: 14px;
  border-left: 5px solid var(--mm-accent);
  margin-bottom: 24px;
}

/* 広告枠（空のときに目立たせない） */
.ad-area {
  margin-left: auto;
  margin-right: auto;
}
.ad-index-top,
.ad-index-bottom {
  grid-column: 1 / -1;
}
.ad-label {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: .1em;
}

/* ---------- 記事ページ ---------- */
.entry-title,
.article h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--mm-navy);
  margin-bottom: 16px;
}
.eye-catch-wrap {
  margin-bottom: 24px;
}
.eye-catch img {
  border-radius: 12px;
}
.eye-catch .cat-label {
  border: none;
  border-radius: 999px;
  background: var(--mm-navy);
  color: #fff;
  top: 12px;
  left: 12px;
  padding: 3px 12px;
}
.article {
  line-height: 1.9;
}
.article h2 {
  background: var(--mm-navy);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  border: none;
  border-left: 6px solid var(--mm-accent);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 2.6em 0 1.2em;
}
.article h3 {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--mm-line);
  color: var(--mm-navy);
  font-size: 19px;
  padding: 6px 0 8px 14px;
  position: relative;
  margin: 2em 0 1em;
}
.article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 10px;
  width: 5px;
  border-radius: 3px;
  background: var(--mm-accent);
}
.article h4 {
  border: none;
  border-left: 3px solid var(--mm-accent);
  padding: 2px 0 2px 10px;
}
.article a {
  color: var(--mm-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article img {
  border-radius: 8px;
}
.article blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--mm-accent);
  border-radius: 8px;
}
.article table th {
  background: var(--mm-navy);
  color: #fff;
}

/* 目次 */
.toc {
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px 24px;
}
.toc-title {
  font-weight: 800;
  color: var(--mm-navy);
}

/* ブログカード */
.blogcard {
  border: 1px solid var(--mm-line);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s;
}
.blogcard-wrap:hover .blogcard {
  box-shadow: var(--mm-shadow-hover);
}
.blogcard-title {
  color: var(--mm-navy);
  font-weight: 700;
}

/* 記事下：カテゴリー・タグ */
.entry-categories-tags .cat-link,
.entry-categories-tags .tag-link {
  border: none;
  border-radius: 999px;
  padding: 4px 14px;
}
.entry-categories-tags .cat-link {
  background: var(--mm-navy);
  color: #fff;
}
.entry-categories-tags .tag-link {
  background: #e2e8f0;
  color: var(--mm-navy);
}

/* 関連記事・前後記事 */
.under-entry-content .related-entry-heading,
.under-entry-content .comment-title {
  color: var(--mm-navy);
  font-weight: 800;
  border-left: 5px solid var(--mm-accent);
  padding-left: 12px;
}
.related-entry-card-wrap,
.prev-post,
.next-post {
  border-radius: 12px;
  transition: background .2s;
}
.pager-post-navi a {
  border-radius: 12px;
}

/* サイドバー（記事ページ） */
.sidebar {
  background: transparent;
  padding: 0;
}
.sidebar .widget {
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar h3,
.sidebar .widget-sidebar-title {
  background: transparent;
  color: var(--mm-navy);
  font-weight: 800;
  border: none;
  border-bottom: 2px solid var(--mm-accent);
  padding: 0 0 8px;
  border-radius: 0;
}

/* ---------- フッター ---------- */
.footer {
  background: var(--mm-navy);
  color: #94a3b8;
  margin-top: 56px;
  border-top: 3px solid var(--mm-accent);
}
.footer a,
.footer .navi-footer-in a {
  color: #cbd5e1;
}
.footer a:hover {
  color: #fff;
}
.navi-footer-in > .menu-footer li {
  border: none;
}
.footer .site-name-text {
  color: #fff;
  font-weight: 800;
  letter-spacing: .06em;
}
.copyright {
  color: #64748b;
  font-size: 12px;
}
.go-to-top-button {
  background: var(--mm-navy);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--mm-shadow-hover);
}

/************************************
** レスポンシブ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  .ect-vertical-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .content-in.wrap {
    padding: 0 16px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  .appeal-in {
    padding: 40px 16px 44px;
  }
  .appeal-title {
    font-size: 34px;
  }
  .singular .main,
  .page .main {
    padding: 24px 20px;
  }
  .entry-title,
  .article h1 {
    font-size: 23px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  .ect-vertical-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .content {
    margin-top: 20px;
  }
  .appeal-title {
    font-size: 28px;
  }
  .appeal-message {
    font-size: 15px;
  }
  .singular .main,
  .page .main {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .article h2 {
    font-size: 18px;
    padding: 12px 14px;
  }
  .article h3 {
    font-size: 17px;
  }
}
