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

/************************************
** 変数（カラースキーム）
************************************/
:root {
  --main-bg: #FAF9F6;
  --text-color: #5A4E3C;
  --accent-color: #A23636;
  --link-color: #2A7F62;
  --highlight-color: #C2A23E;
}

/************************************
** グローバル設定
************************************/
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--main-bg);
  color: var(--text-color);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

/************************************
** img 共通設定
************************************/
.header-image img,
.logo-image img,
.siteHeader_logo img,
.box-menu-icon img {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain;
  border-radius: 12px; /* 画像に角丸をつけたい場合 */
}

/************************************
** ヘッダー関連
************************************/
.logo-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.header-image {
  margin: 0;
  padding: 0;
  background: none;
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.header-image img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

#header,
.header-container {
  width: 100%;
  max-width: 100%;
  background-color: transparent !important;
  margin: 0;
  padding: 0;
  display: none; /* デフォルトは非表示 */
}

/* トップページのみヘッダー表示 */
body.home #header,
body.home .header-container {
  display: block;
}

/* ヘッダー上下余白を完全に無くす */
.header-container,
.header-in,
.logo-image,
.siteHeader_logo,
.header-image,
.logo,
.site-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/************************************
** レスポンシブ（スマホ対応）
************************************/
@media screen and (max-width: 1200px) {
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .header-container,
  .navi,
  #sp_bottom_menu,
  footer,
  .main,
  .wrap,
  .container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .post-content,
  .entry-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 480px) {
  /* フロントページID:1468 のみヘッダー背景画像表示 */
  body.home.page-id-1468 #header {
    display: block !important;
    background-image: url(https://paru-wandering.com/wp-content/uploads/2025/07/850-1000.jpg) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    height: auto !important;
    overflow-x: hidden !important;
  }

  /* それ以外のページは非表示 */
  body:not(.home):not(.page-id-1468) #header {
    display: none !important;
  }

  /* スマホのヘッダー内ロゴ非表示 */
  .siteHeader_logo,
  .logo-image {
    display: none !important;
  }
}

/************************************
** 背景・その他の装飾
************************************/
.wrap,
.container,
.main,
.content {
  background-color: transparent !important;
  box-shadow: none !important;
}

.article {
  background-color: #f9f5e6 !important;
}

.sidebar {
  background-color: #fdf5e6;
}

/************************************
** 人気記事カード（16:9比率保持）
************************************/
.popular-entry-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-entry-card-thumb img {
  width: auto !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

/************************************
** ヘッダー余白調整（隙間なく）
************************************/
#header,
.header-container,
.header-image,
.header-image img {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: block !important;
}

.header-container + .main,
.header-image + .main,
#header + .main,
#header + .content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/************************************
** ボックスメニュー全体（フラットにして角丸）
************************************/
/* ---- ボックス単体の見た目 ---- */
.box-menu {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  min-height: 0;
  height: auto;
  background-color: var(--main-bg);
}

.box-menu-icon {
  flex-grow: 1;
  padding: 0;
  margin: 0;
  width: 100%;
  height:auto;
}

.box-menu-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  max-height: 300px;
}

.box-menu:hover {
  box-shadow: none;
  opacity: 0.8;
}

.box-menu-label,
.box-menu-description {
  display: none;
}




	/* ====================================
   カテゴリーページ共通CSS
   ==================================== */

/* カテゴリーページ：エントリーカード全体 */
body.category .entry-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffefc, #f9f9f6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

/* ホバー効果はPCのみ */
@media screen and (min-width: 768px) {
  body.category .entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
}

/* サムネイル画像 */
body.category .entry-card-thumb {
  width: 100%;
  height: auto;
}

body.category .entry-card-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

/* カード内容 */
body.category .entry-card-content {
  flex: 1;
}

body.category .entry-card-content h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: #222;
  line-height: 1.4;
}

body.category .entry-card-content .entry-card-snippet {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  text-align: left;  /* ←追加 */
}

/* カテゴリーページ共通のラベル */
body[class*="category-"] .entry-card-meta .cat-links {
  display: inline-block;
  background: linear-gradient(to right, #e76f51, #f4a261);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.25em 0.7em;
  margin-bottom: 6px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

	

/************************************
** タイトル・見出し設定
************************************/
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1.5;
}

h1 {
  font-size: 1.6em;
  text-align: center;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: var(--text-color);
  font-weight: bold;
  background: linear-gradient(to right, #fff8e8, #fff);
  border-left: 5px solid var(--highlight-color);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 {
  font-size: 1.4em;
  margin-top: 2.5em;
  margin-bottom: 1.2em;
  padding: 0.4em 0.8em;
  color: var(--accent-color);
  font-weight: bold;
  background: linear-gradient(to right, #fffdf7, #fff);
  border-left: 5px solid var(--highlight-color);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}


/* H3：H2のさらに軽やかバージョン */
h3 {
  font-size: 1.2em;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-left: 0.6em;
  color: #3a3a3a; /* ダークグレー */
  font-weight: bold;
  border-left: 4px solid #7a9cc6; /* 落ち着いたブルー系 */
  background: linear-gradient(to right, #fff, #f7f9fc); /* 優しいグラデ */
}



/* H4：h3よりさらに控えめ、線だけのシンプルデザイン */
h4 {
  font-size: 1em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  padding-left: 0.6em;
  color: var(--accent-color);
  font-weight: bold;
  border-left: 3px solid var(--highlight-color);
  background: none;
}
/************************************
** 本文・装飾
************************************/
p,
ul,
ol {
  margin-bottom: 1.5em;
}

mark {
  background-color: var(--highlight-color);
  padding: 0.2em;
}

blockquote {
  background: #fdf9f3;
  border-left: 4px solid var(--accent-color);
  padding: 1em;
  font-style: italic;
  margin: 2em 0;
  font-family: 'Noto Serif JP', serif;
}



/************************************
** リンク・リスト
************************************/
a {
  color: var(--link-color);
  transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  background-color: #fdf6f6;
}

.category-list li::before {
  content: "・";
  margin-right: 0.5em;
  color: var(--accent-color);
  font-size: 1.2em;
}




/************************************
** サイドバーカスタマイズ
************************************/
.sidebar-intro {
  background-color: #fffaf0; /* クリーム色を明るく */
  border-left: 6px solid #c99a6b; /* 明るめのウォームブラウン */
  padding: 1.2em 1.5em;
  margin-bottom: 2em;
  font-family: 'Noto Serif JP', serif;
  color: #5a4b3a; /* 明るめのブラウン寄りダーク */
  line-height: 1.6;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(201, 154, 107, 0.2); /* 明るい茶色の薄い影 */
}

.sidebar-intro h2 {
  font-size: 1.5em;
  margin-bottom: 0.8em;
  color: #a67c52; /* 明るく優しいブラウン */
  border-bottom: 2px solid #c99a6b;
  padding-bottom: 0.3em;
}

.sidebar-intro p {
  margin-bottom: 1em;
  font-size: 1em;
  letter-spacing: 0.03em;
}


.author-profile {
  text-align: center;
  margin-bottom: 1em;
}

.author-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.4em;
}

.author-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3em;
  font-weight: 700;
  color: #4a6f5a; /* 落ち着いたグリーン系 */
  text-decoration: underline;
  cursor: default;
  margin: 0;
}

/************************************
** レイアウト（レスポンシブ）
************************************/
@media screen and (min-width: 600px) {
 .wwa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* 列間の余白 */
  }

@media screen and (min-width: 768px) {
  .wwa {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }



@media screen and (max-width: 767px) {
  .wwa .box-menu {
    width: 100%;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 599px) {
  .wwa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
  }


  /* 画像トリミングしない */
  .wwa .box-menu img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }



  .image-container {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  .image-container img {
    display: block;
    margin: 0;
    vertical-align: middle;
  }
}

	
