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

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fdf5e6;
}

/************************************
** ヘッダー画像調整
************************************/
.logo-image img {
  max-width: 100%;
  height: auto;
  display: block;
  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 {
  display: block;
  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;
}

/************************************
** レスポンシブ（スマホ対応）
************************************/
@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) {
  #header {
    width: 100%;
    max-width: 100%;
    background-image: url(https://paru-wandering.com/wp-content/uploads/2025/07/850-1000.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: auto;
    overflow-x: hidden;
  }

  .header-image img {
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    object-fit: contain;
  }

  .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;
}

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

/* img のインライン隙間防止 */
.header-image img,
.logo-image img,
.siteHeader_logo img {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/************************************
** 人気記事カード（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;
  height: auto; /* 中身に合わせる */
  background-color: #fdf5e6; /* 背景色を元の色に設定 */
}

/* 画像のサイズ調整 */
.box-menu-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* トリミングせず自然に表示 */
  display: block;
  border-radius: 12px; /* 画像にも角丸を適用 */
}

.box-menu-icon {
  flex-grow: 1; /* 親ボックスに合わせて自然に画像を縦伸びさせる */
  padding: 0;
  margin: 0;
  width: 100%;
  height: 118px; /* 画像に高さを任せる */
}

/************************************
** スマホ（最大480px）でも角丸を確実に適用
************************************/
@media screen and (max-width: 480px) {
  .box-menu {
    border-radius: 12px !important; /* スマホでも確実に角丸を適用 */
    background-color: #fdf5e6 !important; /* 背景色も確実に設定 */
    box-shadow: none !important; /* スマホでも影を削除 */
  }

  .box-menu-icon img {
    border-radius: 12px !important; /* 画像にも角丸を適用 */
  }
}

/************************************
** ボックスメニューのレスポンシブ調整
************************************/
@media screen and (min-width: 768px) {
  .wwa {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-left: -53px; /* ほんの少し左にずらす */
  }

  .wwa .box-menu {
    width: calc(25% - 12px); /* 4列レイアウト */
  }
}

@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 {
  width: calc(50% - 2px) !important; /* 2列レイアウト */
  margin: 2px auto; /* 上下4px、左右autoで中央に */
}

/* アイテムの高さを合わせるための設定 */
.wwa .box-menu img {
  width: 100%;
  height: auto;
  object-fit: contain; /* 画像がトリミングされないように調整 */
}


.box-menu-label,
.box-menu-description {
  display: none !important;
}
.image-container {
  display: flex;
  gap: 16px; /* 画像の横の間隔 */
  align-items: center; /* 縦方向の揃え方を調整 */
  padding: 0; /* コンテナのパディングをゼロに */
  margin: 0;  /* コンテナのマージンをゼロに */
}

.image-container img {
  display: block;         /* 画像周囲の余白を削除 */
  margin: 0;              /* 画像のマージンをゼロに */
  vertical-align: middle; /* テキスト基準のズレ防止 */
}
	  
	  
/* スマホ用、フロントページ（ID: 1468）でのみヘッダー画像を適用 */
@media screen and (max-width: 480px) {
  body.home.page-id-1468 #header {
    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;
  }
}


	/* 通常のヘッダー（全ページで表示される場合） */
.header {
    display: block;
}

/* フロントページでのみヘッダー画像を表示 */
.home .header {
    background-image: url('header-image.jpg');
    background-size: cover;
    height: 300px; /* お好きな高さを設定 */
}

/* その他のページでヘッダー非表示 */
body:not(.home) .header {
    display: none;
}

	

	
.custom-profile-widget {
  background: #fdfdfd !important;
  border-left: 5px solid #8c6239 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  font-family: 'Yu Gothic', 'Helvetica Neue', sans-serif !important;
  color: #333 !important;
  line-height: 1.8 !important;
}

.custom-profile-widget .profile-img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto 15px !important;
}

.custom-profile-widget .profile-name {
  font-size: 1.3em !important;
  text-align: center !important;
  font-weight: bold !important;
  margin-bottom: 4px !important;
}

.custom-profile-widget .profile-title {
  text-align: center !important;
  font-size: 0.95em !important;
  color: #777 !important;
  margin-bottom: 15px !important;
}

.custom-profile-widget .profile-bio {
  font-size: 0.92em !important;
  padding: 0 5px !important;
}

.profile-social {
  margin-top: 20px !important;
  text-align: center !important;
}

.profile-social .social-icon {
  width: 30px !important;
  height: 30px !important;
  margin: 0 10px !important;
  vertical-align: middle !important;
  opacity: 0.85 !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.profile-social .social-icon:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

	
	
	
@media screen and (max-width: 480px) {
  /* フロントページ（page ID: 1468）だけヘッダー画像を表示 */
  body.home.page-id-1468 #header {
    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;
    display: block !important;
  }

  /* フロントページ以外では #header を非表示 */
  body:not(.home):not(.page-id-1468) #header {
    display: none !important;
  }
}

	
	
	
@media screen and (min-width: 481px) {
  /* PCかつ フロントページ かつ 固定ページID:1468 のときだけ表示 */
  body.home.page.page-id-1468 #header {
    display: block !important;
  }

  /* それ以外のPC環境では非表示 */
  body.home.page:not(.page-id-1468) #header,
  body:not(.home) #header {
    display: none !important;
  }
}

	
	

	
/* カテゴリーID 1〜25 にラベル風カテゴリ表示 */
body.category-1 .entry-card-meta .cat-links,
body.category-2 .entry-card-meta .cat-links,
body.category-3 .entry-card-meta .cat-links,
body.category-4 .entry-card-meta .cat-links,
body.category-5 .entry-card-meta .cat-links,
body.category-6 .entry-card-meta .cat-links,
body.category-7 .entry-card-meta .cat-links,
body.category-8 .entry-card-meta .cat-links,
body.category-9 .entry-card-meta .cat-links,
body.category-10 .entry-card-meta .cat-links,
body.category-11 .entry-card-meta .cat-links,
body.category-12 .entry-card-meta .cat-links,
body.category-13 .entry-card-meta .cat-links,
body.category-14 .entry-card-meta .cat-links,
body.category-15 .entry-card-meta .cat-links,
body.category-16 .entry-card-meta .cat-links,
body.category-17 .entry-card-meta .cat-links,
body.category-18 .entry-card-meta .cat-links,
body.category-19 .entry-card-meta .cat-links,
body.category-20 .entry-card-meta .cat-links,
body.category-21 .entry-card-meta .cat-links,
body.category-22 .entry-card-meta .cat-links,
body.category-23 .entry-card-meta .cat-links,
body.category-24 .entry-card-meta .cat-links,
body.category-25 .entry-card-meta .cat-links, 
body.category-26 .entry-card-meta .cat-links,
body.category-27 .entry-card-meta .cat-links{
  display: inline-block;
  background-color: #f4a261;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  margin-right: 5px;
  border-radius: 5px;
  font-weight: bold;
}

/* カテゴリーページ：エントリーカード全体を縦並びに */
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;
}

/* ホバー効果 */
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;
}

/* カテゴリーラベル */
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);
}
