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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/************************************
** Googleフォントの読み込み 
************************************/
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

/************************************
** ベーススタイル 
************************************/
body {
  background-color: #FAF7F2;
  font-family: 'Noto Sans', 'Merriweather', sans-serif;
}
/************************************
** ヘッダー & フッター 
************************************/
.top-wave .top-wave svg {
  display: block;
  width: 100%;
  height: auto;
}
.header-container {
  background-color: #B1C1B0;
  border-bottom: none;
  padding: 1rem 0;
}
/* フッター */
.bottom-wave {
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
  background-color: #FAF7F2; /* 本文背景色に合わせてる */
}

.bottom-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
}

.footer {
  background-color: #B1C1B0;
  color: #333333;
  text-align: center;
  margin-top: 0;;
  font-size: 14px;
}

/* ハンバーガーメニューのボタン */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 20px;
  right: 25px;
  z-index: 1000;
}

.menu-toggle span { 
  display: block;
  width: 100%;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* メニューを開いた時のアニメーション */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* モバイルナビのデザイン */
.mobile-nav {
  position: fixed;
  top: 10px;
  right: -100%;
  width: 250px;
  height: 100%;
  background-color: rgba(249, 249, 249, 0.8);
  transition: right 0.3s ease-in-out;
  padding-top: 60px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.mobile-nav ul {
  padding: 15px;
}
.mobile-nav ul li {
  position: relative;
  list-style: none;
  margin: 0;
  border-bottom: 1px solid #333;
}

.mobile-nav ul li a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: #215037;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid #B1C1B0;
  text-decoration: none;
  transition: all 0.3s ease;
}
.mobile-nav ul li a:hover {
  background-color: #f4f8f4;
  color: #567B5F;;
}

/* メニューが開いた状態 */
.mobile-nav.open {
  top: 0px;
  padding-top: 40px;
  right: 0px;
}


/************************************
** アクセント & ボタンデザイン 
************************************/
/* 「もっと読む」ボタン */
.common-btn {
  display: inline-block;
  background-color: #88b290; /* 統一色 */
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px; /* しっかり丸く */
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}
.common-btn:hover {
  background-color: #567B5F;
}
/************************************
** TOP
************************************/
#top {
  display: flex;
  background-color: #B1C1B0;
}
.top-logo {
  margin: 0 auto;
  /* width: 60%; */
  height: auto;
}

#main-content {
  background-color: #FAF7F2;
}
/************************************
** About
************************************/
/* Aboutセクション */
#about {
  background: #FAF7F2;
  padding-bottom: 100px;
  padding-right:  20px;
  padding-left:   20px;
}

/* Aboutのコンテナ */
.about-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Aboutテキスト */
.about-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: 	#333333;
  line-height: 2;
}

/************************************
** プロフィール
************************************/
.profile-container {
  width :60%;
  height: auto;
  margin: 5% auto;
}
/* 波線背景セクション */
.wave-section {
  position: relative;
  background-color: #B1C1B0; /* お好きな背景色 */
  padding: 80px 0 40px;
  text-align: center;
  overflow: hidden;
}

.wave-section h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.wave-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 C480,100 960,0 1440,100 L1440,0 L0,0 Z" fill="%23FAF7F2"/></svg>') no-repeat;
  background-size: cover;
}
/************************************
** 記事一覧
************************************/
.front-page .heading {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.front-page .heading::before {
  content: '🌿'; /* アイコンは好きなものに変更OK */
  display: block;
  font-size: 1.5rem;
  color: #88b290;
  margin-bottom: 0.5rem;
}

.front-page .heading span {
  display: block;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  color: #567B5F;
  font-size: 24px;
}

.front-page .heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: #88b290;
  margin: 0.5rem auto 0;
}

.front-page .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Swiperコンテナ */
.front-page .swiper-container {
  width: 100%;
  padding: 0; 
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Swiperラッパー */
.front-page .swiper-wrapper {
  display: flex;
  margin: 0 0;
}

/* 各スライド */
.front-page .swiper-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  background: #fff;
  align-items: stretch;
  border-radius: 10px;
  padding: 15px;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

/* 記事カード */
.front-page .article-card {
  margin: 0 auto; 
  text-align: left;
  max-width: 320px; 
  width: 100%;       
}

.front-page .article-card:hover {
  transform: translateY(-5px);
}

/* 記事サムネイル */
.front-page .article-image img {
  width: 100%;
  border-radius: 10px;
}

/* カテゴリーバッジ */
.front-page .category-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* 記事タイトル */
.front-page .article-title {
  font-size: 1.2rem;
  margin-top: 10px;
}

.front-page .article-title a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.front-page .article-title a:hover {
  color: #F28C8C;
}

/* 著者と日付 */
.front-page .article-meta {
  font-size: 14px;
  color: #777;
  margin-top: 5px;
}

/* タグ */
.front-page .tag {
  background:#F0F4F0;
  color: #333333;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
}
/* ボタン */
.swiper-button-next, .swiper-button-prev {
  z-index: 10;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 20px;
}
/************************************
** お問い合わせページ
************************************/
.contact-form {
	max-width: 600px;
	margin: 0 auto;
  }
  
.form-group {
	margin-bottom: 1.5rem;
	text-align: left;
}
  
.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: #2e5939;
	font-weight: bold;
}
  
  .form-group input,
  .form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #b4c8b8;
	border-radius: 0.5rem;
	background-color: #fff;
	font-size: 1rem;
  }
  
  .submit-btn {
	background-color: #88b290;
	color: #fff;
	border: none;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	border-radius: 2rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
  }
  
  .submit-btn:hover {
	background-color: #729e7d;
  }
  
 .material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 100,
  'GRAD' 0,
  'opsz' 24;
  color: #215037;
  vertical-align: middle;
  margin-right: 5px;
}

.thanks-message {
  text-align: center;
  font-size: 1 rem;
  color: #215037;
}

.contact-message {
  text-align: center;
  margin: 20px auto;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.7;
  color: #215037;
}

/************************************
** archive.php 専用のスタイル
************************************/
.archive-page .page-heading {
  text-align: center;
  padding: 60px 20px 20px;
  background-color: #FAF7F2;
}

.archive-page .page-heading h1 {
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  color: #567B5F;
  margin: 0;
  position: relative;
}

.archive-page .page-heading h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px; 
  background-color: #88b290;
  margin: 10px auto 0;
}

.archive-page .page-subtitle {
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #aaa;
  margin-top: 10px;
}

.archive-page .filter-container {
  background: #f9f9f7;
  padding: 20px 30px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin: 30px auto;
  max-width: 900px;
}

.archive-page .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.archive-page #keyword {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  width: 200px;
}

.archive-page #search-box {
  display: flex;
  justify-content: center; 	
  border: solid 2px #666;
  max-width: 300px;
  height:50px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
 }

 .archive-page #search-button,
 .archive-page #reset-button {
   padding: 10px 18px;
   border-radius: 20px;
   background-color: #88b290;
   color: #fff;
   border: none;
   font-weight: bold;
   cursor: pointer;
   transition: background-color 0.3s;
 }
 .archive-page #reset-button {
  background-color: #e0e0e0;
  color: #333;
}
 .archive-page #search-button:hover {
  background-color: #729e7d;
}
/* タグ */
.archive-page .tag-list {
  text-align: center;
  margin-top: 20px;
}

.archive-page .tag-button {
  background: #F0F4F0;
  color: #215037;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  margin: 5px;
  border: none;
  transition: all 0.3s ease;
}

.archive-page .tag-button:hover {
  background: #cce5cc;
}

.archive-page .tag-button.active {
  background: #88b290;
  color: #fff;
}

.archive-page #main-content {
  display: flex;
  justify-content: center;
}

/* 記事一覧コンテナ */
.archive-page .article-list-container {
  padding: 20px;
}

/* 記事リスト */
.archive-page .article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
}

/* 記事カード */
.archive-page .article-card {
  background: #fff;
  border-radius: 30px;
  padding: 15px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out; 
  width: 100%;
  max-width: 350px;
}

.archive-page .article-card:hover {
  transform: translateY(-5px);
}

/* サムネイル */
.archive-page .article-thumbnail img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* 記事情報 */
.archive-page .article-info {
  flex: 1;
}

/* カテゴリーラベル */
.archive-page .category-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}

.archive-page .category-label {
  background: #F8E1E7;
  color: #C05A6D;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
}

/* 記事タイトル */
.archive-page .article-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.archive-page .article-title a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.archive-page .article-title a:hover {
  color: #0073aa;
}

/* 投稿日時 */
.archive-page .article-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

/* 記事概要 */
.archive-page .article-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 「続きを読む」ボタン */
.archive-page .more-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #A8D5BA;
  color: 	#333333;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.archive-page .more-button:hover {
  background: #A8D5BA;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.page-button {
  padding: 8px 14px;
  background-color: #f0f8f5;
  border: 1px solid #ccc;
  border-radius: 30px;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.page-button:hover {
  background-color: #8cc084;
  color: #fff;
}

.page-button.current {
  background-color: #8cc084;
  color: #fff;
  border: none;
}

.tag-button.active {
  background-color: #8cc084;
  color: #fff;
}

.search-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}

#category-select-box {
  text-align: center;
  margin: 10px 0;
}

.archive-page #category-dropdown {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
}

#selected-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.selected-filter {
  background-color: #dcebdc;
  color: #215037;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
}

.selected-filter .remove-filter {
  cursor: pointer;
  font-weight: bold;
  color: #999;
  margin-left: 6px;
}

/************************************
** 投稿記事 single.php
************************************/
.toc,
#toc_container,
.entry-content .toc {
  display: none !important;
}

/* 🌿 全体背景・フォント・行間調整 */
body {
  background-color: #FAF7F2;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.single-post-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 1200px;
  margin: 5% auto;
  padding: 30px;
}

/* リード文 */
.single-post-wrapper .main p:first-of-type {
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
  margin-bottom: 1.8em;
}
/* 🌿 左：記事本文 */
.single-post-wrapper .main {
  width: 70%;
}

/* 🌿 段落の間隔を広げる */
.single-post-wrapper .main p {
  margin-bottom: 1.6em;
}

/* 🌿 H2見出し */
.single-post-wrapper .main h2 {
  border-left: 6px solid #66bb6a;
  padding-left: 12px;
  margin: 50px 0 20px;
  font-size: 1.6em;
  font-weight: bold;
  background: #f5fdf6;
}

/* 🌿 H3見出し */
.single-post-wrapper .main h3 {
  border-bottom: 2px dotted #ccc;
  padding-bottom: 4px;
  margin: 40px 0 16px;
  font-size: 1.3em;
}
/* 引用ボックス */
blockquote {
  border-left: 5px solid #88b290;
  padding: 10px 20px;
  background-color: #f0f8f5;
  font-style: italic;
  border-radius: 10px;
  color: #333;
  position: relative;
}
blockquote::before {
  content: "💬";
  position: absolute;
  left: 10px;
  top: 10px;
}
/* 🌿 本文内の画像 */
.single-post-wrapper .main img {
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}


/* 🌿 右：サイドバー */
.single-post-wrapper .sidebar {
  width: 28%;
}
.single-post-wrapper #sidebar {
  width: 100%;
}
/* 🌿 サイドバー内ウィジェット余白 */
.single-post-wrapper .sidebar .widget {
  margin-bottom: 30px;
}

.single #toc_container {
  display: none;
}

/* サイドバー：新着記事リスト */
.sidebar h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #215037;
  background: #B1C1B0; /* ←ここ変更！！ */
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* ←影追加！ */
}

.sidebar h3::before {
  content: none;
}

/* 🌿 一覧へ戻るボタン */
.back-to-list {
  text-align: center;
  margin: 50px 0 0;
  margin-top: 60px;
}
.back-to-list .btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: #66bb6a;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  font-size: 1.1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.back-to-list .btn:hover {
  background-color: #4caf50;
}


/* 🌿 画像の丸みや余白 */
.entry-content img {
  border-radius: 10px;
  margin: 20px 0;
  max-width: 100%;
  height: auto;
}

.sidebar-search-input {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-bottom: 10px;
}

.sidebar-search-button {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  background-color: #88b290;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sidebar-search-button:hover {
  background-color: #729e7d;
}

.category-dropdown {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-top: 10px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/************************************
** デスクトップ用（1023px以下）
************************************/
@media screen and (max-width: 1023px){
  .article-card {
    padding: 10px;
  }
  .entry-title {
    font-size: 22px;
  }
  .header-menu {
    padding: 5px 10px;
  }
}
/************************************
** タブレット用（834px以下）
************************************/
@media screen and (max-width: 834px){
  .about-text {
    font-size: 1rem;
  }
  .article-list {
    display: block;
  }
  .article-card {
    margin-bottom: 15px;
  }
  body {
    font-size: 15px;
    line-height: 1.8;
  }
  h1, h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.0rem;
  }
  .archive-page .article-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.75;
  }
  h1, h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  .about-text {
    font-size: 1rem;
  }
  .single-post-wrapper {
    flex-direction: column;
    padding: 20px;
  }
  .single-post-wrapper .main,
  .single-post-wrapper .sidebar {
    width: 100%;
  }
  .single-post-wrapper .sidebar {
    margin-top: 40px;
  }
  .back-to-list .btn {
    width: 80%;
    padding: 12px;
  }
  .archive-page .article-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
  }
  .archive-page .article-card {
    margin: 10px auto;
    width: 95%;
  }
  .common-btn,
  .back-to-list .btn,
  .page-button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .menu-toggle {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 25px;
  }
  .mobile-nav {
    width: 100%;
    padding-top: 80px;
  }
  .mobile-nav ul li a {
    font-size: 1.2rem;
    padding: 1.2rem;
  }
  .front-page .swiper-slide {
    margin: 0 auto;
  }
  .search-form,
  .contact-form,
  #search-box {
    width: 95%;
    margin: 0 auto;
  }
  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }
  .archive-page .filter-container {
    padding: 15px;
    margin: 20px 10px;
    max-width: 100%;
  }
}

/************************************
** スマホ用（480px以下）
************************************/
@media screen and (max-width: 480px){
 body {
    font-size: 13.5px;
    line-height: 1.7;
  }
  h1, h2 {
    font-size: 0.8rem;
  }
  h3 {
    font-size: 0.6rem;
  }

  .entry-title {
    font-size: 18px;
  }
  .archive-page .article-list {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .archive-page .article-card {
    padding: 20px;
  }
  .btn-primary {
    width: 100%;
    padding: 12px;
  }
  .about-text {
    font-size: 0.8rem;
  }
  .archive-page .article-title {
    font-size: 1rem;
  }
  .archive-page .article-excerpt {
    font-size: 13px;
  }

  .profile-container {
    width :85%;
    margin: 1% auto;
    font-size: 0.9rem;
  }
  .contact-message {
    font-size: 15px;
  }
}