@charset "UTF-8";
/* CSS Document */
body, html {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1; /* main が残りの高さを使う */
}
.blog-page{
	max-width: 950px;
	padding: 120px 30px;
	margin: 0 auto;
}
.blog-page-inner{
	width: 100%;
}
.blog-page .blog{
	text-align: center;
	margin-bottom: 60px; 
}

.blog .title{
	font-size: 1.75rem;
	letter-spacing: 3px;
}
.blog-list{
	display: flex;
	justify-content: space-between;
}

.blog-categories{
	position: relative;
	margin-left: 55px;
	text-align: left;
}

.side-t{
	text-align: left;
	letter-spacing: 1.5px;
	margin-bottom: 20px;
	font-size: 1.2rem;
	color: #464646;
}

.blog-categories ul{
	position: sticky;
	left: 0;
	top: 130px;
    width: 150px;
}

.blog-categories ul li{
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: solid 0.5px #c0c0c0;
	width: 130px;
}


.blog-categories button{
	padding: 5px 10px;
}

.filter-btn {
  background-color: #fff; /* 通常時 */
  color: #C3C3C3;
  padding: 6px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
  background-color: #f5f5f5;
  opacity: 0.3;
}

.filter-btn.active {
  background-color: #464646; /* 選択中の背景 */
  color: #fff;              /* 選択中の文字色 */
}

.cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content:space-between;
}

.card {
  width: 300px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%); /* 白黒にする */
  transition: filter 0.5s ease, transform 0.5s ease;
}

.card-thumb:hover img{
  filter: grayscale(0%); /* カラーに戻す */
  transform: scale(1.05); /* 拡大効果も追加可能 */
}


.card-info {
  padding: 15px 0 ;
  text-align: left;
}

.card-date,
.card-cat {
  display: inline-block;
  font-size: 0.75rem;
  color: #888;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "serif";
  margin-right: 10px;
}

.card-title {
  font-size: 0.9375rem;
  margin-top: 5px;
  color: #464646;
}
@media(max-width:1000px){
	.cards-wrap {
  display: flex;
  flex-wrap: wrap;
  }
}

@media(max-width:904px){
  .card-thumb img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%); /* 白黒にする */
  transition: filter 0.5s ease, transform 0.5s ease;
}
	.card{
		width: 100%;
	}	
	
}


@media(max-width:550px){
	.blog{
		text-align: center;
	}
	.blog-list{
	display: flex;
    flex-direction: column-reverse; /* ← 並びを逆にする */	
	width: 100%;
	gap: 24px; /* お好みの余白 */
}
	.blog-categories{
		max-width: 100%;
		margin-left: 0px;
		position: static; /* sticky を解除 */
	}
	
	.blog-categories ul{
		display: flex;
        flex-wrap: wrap;
        justify-content:center;
        width: 100%;
        margin-bottom: 40px;
		text-align: center;
    }
	
	.side-t{
		text-align: center;
		display: none;
	}
	
	.blog-categories ul li{
	margin-bottom: 20px;
	padding-bottom: 0px;
	border-bottom: none;
}
	.cards-wrap{
		max-width: 100%;
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		justify-content: center;
	}
	.card{
		width: 100%;
	}
	.card-thumb img {
        width: 100%;
        height: 270px;
		object-fit: cover;
}
}

@media(max-width:320px){
	.blog-categories ul li {
		width: auto;
	}
	.card-thumb img {
        height: 175px;
}
}