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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/


.search-box {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
	height: 45px;
  max-width: 750px;
  margin: 10px auto;
  border: 1px solid #e2caa2; 
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  background-color: #fffaf5;
}
.search-box input {
  width: 100%;
  border: none;
  background-color: transparent;
  color: #333333;
  font-size: 15px;
  padding: 15px 20px;
  border-radius: 20px;
  outline: none;
}
.search-box input::placeholder {
  color: #999;
}
.search-box input:focus {
  background-color: #fcf5e6; 
}
.search-box button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 100%;
  border: none;
  background: linear-gradient(to right, #e0c28c, #c19d5c);
  color: #ffffff;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 20px 20px 0;
  transition: background-color 0.3s ease;
  font-size: 18px;
}
.search-box button:hover {
  background: linear-gradient(to right, #f0d7a2, #d1ab6d);
}


/************************************
** ページ送り
************************************/
.pagination-next {
  margin-top: 40px;
  text-align: center;
}

.pagination-next-link {
  display: inline-block;
  width: 80%;
  max-width: 300px;
  padding: 12px 20px;
  background: linear-gradient(to right, #49add1, #2c88b3);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pagination-next-link:hover {
  background: linear-gradient(to right, #68caee, #3ea4cf);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.page-numbers {
  display: inline-block;
  min-width: 42px;
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
  text-align: center;
  font-size: 15px;
  color: #2c88b3;
  border: 1px solid #2c88b3;
  border-radius: 10px;
  background-color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover {
  background-color: #2c88b3;
  color: #fff;
  border-color: #2c88b3;
}

.pagination .current {
  background-color: #2c88b3;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

.page-numbers.dots {
  background: none;
  border: none;
  color: #999;
  pointer-events: none;
}


.go-to-top {
	right: 15%;
}
#custom_post_navigation_widget-2 {
 margin-bottom: 0px;
}
.post-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 15px;
  width: 100%; 
}

.previous-post, .next-post {
  flex-shrink: 0; 
  width: 33.3%; 
}

.home-link {
  flex-grow: 1;
  text-align: center; 
}

.post-navigation a {
  background-color: #008C8E;
  border: 1px solid #ddd;
  height: 45px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-size: .8rem;
  font-weight: 300;
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-navigation a:hover {
  background-color: #00ABAE;
  border-color: #00ABAE;
}

.previous-post {
  margin-right: 10px; 
}

.next-post {
  margin-left: 10px; 
}
/* タイトルを省略するスタイル */
.post-navigation a span.post-title {
  white-space: nowrap;      
  overflow: hidden;         
  text-overflow: ellipsis;   
  max-width: 70%;            
  display: inline-block;    
}
@media screen and (max-width: 480px){
	.post-navigation a span.post-title {
  		display: none;
	}
}
/************************************
** モバイル記事
************************************/
@media (max-width: 768px) {
  .pagination-next {
    margin-top: 24px;
  }
}
/* モバイル向けの調整 */
@media only screen and (max-width: 768px) {
  #search-4 {
	margin-bottom: 1.0em;
  }
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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