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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ==========================================================
   サイト配色（ケースファイル風：ダークネイビー + パーチメント + ゴールド）
   ========================================================== */

body {
  background-color: #F2EEE2;
  color: #232A3B;
}

#container,
#content,
.article,
.entry-card-wrap {
  background-color: #FFFDF8;
}

#header,
#navi,
#footer,
.navi-in {
  background-color: #1F2A44;
}

a {
  color: #2E3A5C;
}
a:hover {
  color: #45577F;
}

.article h1,
.article h2 {
  border-bottom: 3px solid #C9A227;
}

.article h3 {
  border-left: 6px solid #C9A227;
}

.entry-category {
  background-color: #C9A227 !important;
  color: #1F2A44 !important;
  border-color: #C9A227 !important;
}

.entry-card-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.sns-share-buttons,
.widget-title,
.box-title {
  border-color: #C9A227;
}

/* ==========================================================
   ミステリー・調査モチーフの装飾
   ========================================================== */

/* サイト全体にうっすら文様風の背景 */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' width='40' height='40'%3E%3Ccircle cx='16' cy='16' r='9' stroke='%231F2A44' stroke-width='1.4' fill='none' opacity='0.07'/%3E%3Cline x1='22.5' y1='22.5' x2='30' y2='30' stroke='%231F2A44' stroke-width='2' opacity='0.07'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 64px 64px;
}

/* 本文の箇条書きを虫眼鏡マーカーにする */
.article .entry-content ul li,
.article .entry-content > ul li {
  list-style: none;
  position: relative;
  padding-left: 1.5em;
}
.article .entry-content ul li::before,
.article .entry-content > ul li::before {
  content: "🔍";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.9em;
}

/* 見出しの先頭に虫眼鏡 */
.article h2::before {
  content: "🔍 ";
}

/* 引用ブロックに虫眼鏡の透かし */
.article blockquote {
  position: relative;
  overflow: hidden;
}
.article blockquote::after {
  content: "🔍";
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 2em;
  opacity: 0.15;
  pointer-events: none;
}

/* 記事一覧のサムネイル右下に調査バッジ */
.entry-card-thumb {
  position: relative;
}
.entry-card-thumb::after {
  content: "🔍";
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 1.3em;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

/* トップへ戻るボタンを虫眼鏡に */
#go-to-top a::before {
  content: "🔍";
  font-family: initial;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ==========================================================
   v2 マガジンデザイン（新設サイトのため最初からこの構成で作る）
   ねらい: 「よくあるWordPressブログ」感をなくし、
   ケースファイル（調査資料）を思わせるカード型の一覧にする。
   ========================================================== */

/* ---- 見出し用フォント（タブロイド見出し風） ---- */
.logo-header .site-name-text,
.logo-footer .site-name-text,
.article h1,
.article h2,
.article h3,
.entry-card-title,
.related-entry-card-title,
.widget-title,
.box-title {
  font-family: "Shippori Antique B1", var(--cocoon-default-font, serif);
}

/* ---- ヘッダー：濃紺の帯 + スクロール追従 ---- */
#header-container {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.header-in {
  padding: 16px 0 12px;
}
.tagline {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #C9A227;
  margin-bottom: 2px;
}
.logo-header .site-name-text {
  font-size: 25px;
  font-weight: 700;
  color: #F2EEE2;
  letter-spacing: 0.02em;
}
.logo-header .site-name-text::before {
  content: "🔍 ";
}
.logo-footer .site-name-text {
  color: #F2EEE2;
}

/* ---- 記事一覧：横長カセットからケースファイル風カードグリッドへ ---- */
.list.ect-entry-card {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 3%;
}
.list.ect-entry-card .entry-card-wrap {
  width: 31.33%;
  padding: 0;
  border-radius: 8px;
  background-color: #FFFDF8;
  border: 1px solid rgba(31, 42, 68, 0.1);
  box-shadow: 0 1px 3px rgba(31, 42, 68, 0.06), 0 10px 24px -18px rgba(31, 42, 68, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.list.ect-entry-card .entry-card-wrap:hover {
  transform: translateY(-4px);
  background-color: #FFFDF8;
  box-shadow: 0 4px 10px rgba(31, 42, 68, 0.1), 0 18px 30px -16px rgba(31, 42, 68, 0.45);
}
.list.ect-entry-card .entry-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.list.ect-entry-card .entry-card-thumb {
  float: none;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}
.list.ect-entry-card .entry-card-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list.ect-entry-card .entry-card-content {
  margin: 0;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.list.ect-entry-card .entry-card-title {
  font-size: 16.5px;
  -webkit-line-clamp: 2;
}
.list.ect-entry-card .entry-card-snippet {
  color: #5B6376;
  -webkit-line-clamp: 2;
}
.list.ect-entry-card .entry-card-meta {
  position: static;
  margin-top: auto;
  padding-top: 10px;
  text-align: left;
}
.list.ect-entry-card .cat-label {
  top: 10px;
  left: 10px;
  border: none;
  border-radius: 3px;
  background-color: rgba(201, 162, 39, 0.94);
  color: #1F2A44;
  padding: 3px 11px;
  font-size: 11px;
  letter-spacing: 0.02em;
}
@media screen and (max-width: 900px) {
  .list.ect-entry-card .entry-card-wrap {
    width: 48.5%;
  }
}
@media screen and (max-width: 560px) {
  .list.ect-entry-card .entry-card-wrap {
    width: 100%;
  }
  .logo-header .site-name-text {
    font-size: 20px;
  }
}

/* ---- サイドバー：ウィジェットをカード化 ---- */
.sidebar .widget {
  background-color: #FFFDF8;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(31, 42, 68, 0.1);
}
.sidebar .widget-title,
.sidebar h2.wp-block-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1F2A44;
  border-bottom: 2px solid #C9A227;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ---- ページネーションを角丸に ---- */
.pagination a.page-numbers,
.pagination span.page-numbers {
  border-radius: 4px !important;
}

/* ---- フッター ---- */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.footer,
.footer a {
  color: #C7CBD6;
}
