@import url("common.css");

#blog{
	padding: 0 20px;
	width: 100%;
	max-width: 1100px;
	margin: 0px auto;
}

.post-list-wrapper{
margin: 100px 0 200px;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
gap: 20px;
}
/* メニュー全体の配置（中央寄せ） */
.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* スマホで折り返すように */
    list-style: none;
    padding: 0;
    gap: 15px; /* ボタン同士の隙間 */
    margin-bottom: 40px;
}

/* 通常のボタン（リンク）の見た目 */
.category-menu li a {
    text-decoration: none;
    display: inline-block;
    padding: 10px 25px; /* 内側の余白（上下 左右） */
    font-size: 16px;
    font-weight: 500;
    color: #333;           /* 通常時の文字色 */
    background-color: #fff; /* 通常時の背景色（白） */
    border: 1px solid #ddd; /* 薄い枠線 */
    
    /* 【重要】両端を丸くする設定 */
    border-radius: 50px;   /* 高さに合わせて十分な丸みを指定 */
    
    /* 動きを滑らかに */
    transition: all 0.3s ease;
}

/* ホバー時のちょっとした変化 */
.category-menu li a:hover {
    border-color: #000; /* 枠線を黒に */
    color: #000;        /* 文字を黒に */
}

/* 【重要】選択されている時（active）のスタイル */
.category-menu li a.active {
    color: #fff !important;            /* 文字を白に */
    background-color: #000 !important; /* 背景を黒に */
    border-color: #000 !important;     /* 枠線も黒に */
    font-weight: bold;                 /* 太字にする（お好みで） */
}
.blog{
	position: relative;
	width: calc(33.3% - (20px * 2 / 3));
	margin: 0 0 40px;
}
.blog .date{
font-family: 'KudryashevDisplaySans', sans-serif;	
color: #FD3259;
margin-bottom: 6px;
}
.blog-img-wrapper{
	
	height: 300px;
}
.blog-img-wrapper img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}
.blog .category{
position: absolute;
right: 0;
top:8px;
color: #fff;
font-family: 'KudryashevDisplaySans', sans-serif;	
font-size: 14px;
}

.blog .category span.information{
background-color: #FD3259;
    border-radius: 6px;
    padding: 8px 20px;
}
.blog .category span.customer{
background-color: #D9A25F;
    border-radius: 6px;
    padding: 8px 20px;
}
.blog .category span.dayblog{
background-color: #DD8F9E;
    border-radius: 6px;
    padding: 8px 20px;
}
.blog h3{
font-size: 18px;
border-bottom: solid #ccc 1px;
padding: 0 0 10px;
margin: 10px 0 6px;
font-weight: bold;
	line-height:1.5;
	height:62px;
	overflow:hidden;
}
.blog p.comment{
display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* ここを2にすると2行で止まる */
    overflow: hidden;
    line-height: 1.6;
}
.blog a{
	position: absolute;
	top:0;
	left: 0;
	width: 100%;
	height: 100%;
}
body.single #page{
	margin: 200px 0 0;
}
.category-filter-container{
	width: 100%;
}
.entry-header{
	margin: 20px 0 50px;
}
.entry-header .entry-title{
    text-align: center;
    font-size: 32px;
    border-bottom: solid #ccc 1px;
    padding: 12px;
    
}
.entry-header .date{
	text-align: center;
	font-size: 20px;
	font-family: 'KudryashevDisplaySans', sans-serif;
	color: #666;
}
.entry-header .category{
	    text-align: center;
    font-family: 'KudryashevDisplaySans', sans-serif;
}
body.single article{
	    border: solid #ccc 1px;
    border-radius: 10px;
    margin: 80px 0 20px;
    padding: 50px;
    line-height: 2;
}
body.single article .entry-content img{
	margin: 20px 0;
}
.template-text{
	margin: 50px 0;
	    background-color: #FDFBE3;
    padding: 30px;
    border-radius: 10px;
}
.template-text p{
	margin-bottom: 16px;
}
.entry-footer{
	display: none;
}
.navigation{
	    width: 1050px;
    margin: 0 auto 200px;
}
.navigation .screen-reader-text{
	display: none;
}
.navigation .svg-icon{
vertical-align: text-top;
}
.hash{
	font-size: 14px;
	margin: 30px 0 0 0;
}

/* 消えるときのフェードアウト感 */
.isotope-item.isotope-hidden {
    pointer-events: none;
    z-index: 1;
}
.isotope,
.isotope .blog {
  -webkit-transition-duration: 0.8s !important;
     -moz-transition-duration: 0.8s !important;
          transition-duration: 0.8s !important;
}

.isotope .blog {
  -webkit-transition-property: -webkit-transform, opacity !important;
     -moz-transition-property:    -moz-transform, opacity !important;
          transition-property:         transform, opacity !important;
}

/* 親要素：高さの変化を滑らかに */
.blog-grid {
    position: relative;
    transition: height 0.6s ease;
	display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wpr-post-content img{
	margin: 30px 0;
	max-width: 400px !important;
    height: auto !important;
}
.page-header,.site-footer,.comment-form-url{
	display: none;
}
.single-memo{
	    width: 800px;
    margin: 50px auto;
    line-height: 2;
}
.comments-area{
	    width: 800px;
    margin: 0 auto;
}
.comment-form{
	line-height: 2;
}
.post-tags{
	display:none;
}
.teikei{
	margin:40px 0 0 0;
	color:#555;
}
.teikei p{
	margin-bottom:16px;
}
.teikei-tag{
	    color: #999;
    font-size: 14px;
}
/* ページネーション全体の折り返しと中央寄せ */
.pagination {
    display: flex;
    justify-content: center; /* センター寄せ */
    align-items: center;
    margin: 40px 0;
    gap: 8px; /* 数字同士の間隔 */
    clear: both;
}

/* 数字と「前へ・次へ」の共通スタイル */
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;  /* 丸の幅 */
    height: 40px; /* 丸の高さ */
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%; /* ここで正円にする */
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 現在表示しているページの数字（色を反転） */
.pagination .page-numbers.current {
    background-color: #333; /* 好きなメインカラーに */
    color: #fff;
    border-color: #333;
}

/* ホバーした時の動き */
.pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
    border-color: #bbb;
}

/* 「前へ」「次へ」だけは丸だと文字がはみ出る場合があるので、少し横長にする設定 */
.pagination .prev, 
.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px; /* カプセル型 */
}
@media screen and (max-width: 469px){
	.category-menu {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.category-menu li{
	margin: 0 0 20px;
}
.blog-contents{
	display: block;
}
.blog{
	width: 100%;
}
	.wpr-post-content img{
		max-width:100%;
	}
	.wpr-post-title{
		line-height:1.6 !important;
	}
}