@charset "utf-8";
/* ブログ・買取一覧・検索結果・カテゴリー・ページャーのcss */
#works {
    padding-top: 5%;
    background: #fff;
}
#searchform{
	margin: 10% 0 5%;
    padding: 5% 0 0;
    display: flex;
    justify-content: center;
}

.sidebar1 .textInpt {
    border: 1px solid #909090;
    border-radius: 7px 0 0 7px;
    padding-left: 1%;
}

/* blog */

#blog {
    padding-top: 13%;
padding-bottom: 13%;
background: #f6f6f6;
max-width: 1280px;
    margin: 0 auto;
}
.blog_container{
display: flex;

}
#blog #searchform{
display:flex;
padding: 10% 10% 10% 8%;
justify-content: center;
}
.sidebar1 .textInpt{
border: 1px solid #909090;
border-radius: 7px 0 0 7px;
padding-left: 1%;
font-size: clamp(1.3rem, 2vw, 2rem);
max-width: 80%;
}

.div_blog{
background: #fff;

}
.side_bar{
margin-left: 3%;
}
.sidebar1{
background: #fff;
}
.sidebar2{
background: #fff;
margin-top: 7%;

}
.search_h2 {
font-weight:700;
font-size: clamp(1.5rem, 2vw, 3.5rem);
color: #ffff;
background-color: #ed6c0e;
padding: 8px 12px;
margin-bottom: 15px;
text-align: left;
}

.category{
display: block;
text-align: left;
margin: 0 6%;
border-bottom: 1px solid #909090;
color: #171717;
font-size: clamp(1.3rem, 2vw, 2rem);
}

.works_page {
    text-align: center;
}

.works_page img {
width: 90%;
height: 90%;
}
ul.search_sec52flex {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin: 2%;
}
ul.search_sec52flex li {
display: table;
line-height: 120%;
text-align: left;
width: 50%;
margin-bottom: 20px;
}
.spanred {
color: red;
font-size: 25px;
}
.price {
padding-top: 10px;
}

#search_content p {
    text-align: center;
    font-size: 20px;
    padding-top: 10px;
}
/*styled-list（ul）のデザイン*/
.styled-list {
    list-style-type: disc !important; /* ドットを表示 */
    list-style-position: inside !important; /* リストのドットを内側に表示 */
    color: #000;
    border-top: dashed 2px #668ad8; /* 上に点線の境界線 */
    border-bottom: dashed 2px #668ad8; /* 下に点線の境界線 */
    background: #f1f8ff; /* 背景色 */
    padding: 1em 2em; /* 内側の余白を追加 */
    margin: 3% 0; /* 上下にマージンを追加 */
}

.styled-list li {
    line-height: 1.5;
    padding: 0.5em 0;
    font-size: 1.6rem; /* フォントサイズを調整 */
}

/* 見出しのスタイル */
.styled-list li strong {
    font-weight: bold;
    font-size: 1.6rem; /* 見出しのサイズを少し大きく */
}

/* メディアクエリでレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .styled-list {
        padding: 0.8em 1em; /* モバイルでは余白を少し減らす */
    }
	.styled-list li strong {
    	font-size: 1.5rem; /* 見出しのサイズを少し大きく */
	}
    .styled-list li {
        font-size: 1.5rem; /* モバイルではフォントサイズを少し小さく */
    }
}

/* 投稿記事内のstyled-listクラスのみにスタイルを適用 */
.styled-list_ol {
    counter-reset: number; /* 数字をリセット */
    list-style-type: none; /* 数字のリセット */
    padding: 0.5em;
    background: #f5faff;
	margin: 3% 0;
}

.styled-list_ol li {
    position: relative;
	font-size: 16px;
    padding-left: 30px;
    line-height: 1.5em;
    padding: 0.5em 0.5em 0.5em 30px;
    counter-increment: number; /* 各liのカウンターをインクリメント */
}

.styled-list_ol li::before {
    content: counter(number); /* カウンターの値を表示 */
    display: inline-block;
    background: #5c9ee7;
    color: white;
    font-family: 'Avenir', 'Arial Black', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 15px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 20%;
    transform: translateY(-50%);
}


/* カテゴリー */
#category-blog{
    margin-top: 10%;
}

/* style.css */

/* search.phpに関するcss */
#search_content{
    margin: 10% auto;
    background: #fff;
    max-width: 1200px;
}
.works_page h3 {
	text-align: left;
    font-size: 18px;
    margin: 10px 40px 0;
	line-height: normal;
}
.works_page img {
    width: 85%;
}



    /* ページャー */

    .pagination{
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 20px;
    }
    .page-item-2 {
    background-color: #ed6c0e; /* 任意の背景色 */
    color: #ffffff; /* テキストの色 */
    /* その他のスタイルを指定 */
}

    .pagination .is-next {
        position: relative;
        display: block;
        width: 58px;
        height: 38px;
        padding: 0;
        color: #fff;
        background: #ed6c0e;
        border: none;
        text-align: center;
    }

    .pagination .page-number {
        display: inline-block;
        font-size: 2rem;
        padding: 3px 10px;
        margin: 0 10px;
        border: 1px solid #ccc;
    }
    
    

@media screen and (max-width:768px) {
   #works {
    padding-top: 50px;
   }
   #blog {
    padding: 100px 0 0 0;
    }
    .search_h2 {
    font-size: 25px;
    color: #ffff;
    background-color: #ed6c0e;
    padding: 8px 12px;
    margin: 15px 0 ;
    text-align: left;
    }
    
    .blog_container {
    display: block;
    }
    .side_bar{
    margin-left: 0;
    }
    .sidebar1 .textInpt{
    margin: 0;
    }
    .sidebar1 .textInpt{
    padding: 0 18% 0 21%;
    }
    
    .works_page img {
    width: 95%;
    }
ul.search_sec52flex li{
    width: 48%;
    }
    .spanred {
    color: red;
    font-size: 18px;
    font-weight: 600;
	padding: 0 0 6px 5px;
    }
    .spanyen {
    font-size: 14px;
	margin: 0 0 0 7px;
    }
    
.works_page h2 {
    text-align: left;
    font-size: 18px;
    margin: 10px 5px 5px;
}
	
.styled-list_ol li {
	font-size: 15px;
}
	.works_page h3 {
		margin: 0;
	}

}

/* 関連記事全体のスタイル */
.related_post {
    margin-top: 40px;
}

.related_post h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* 関連記事のリストスタイル */
.related_post_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 要素間のスペースを調整 */
    gap: 20px; /* アイテム間の余白 */
    padding: 0;
    list-style: none;
}

.related_post_container li {
    width: calc(25% - 20px); /* 各アイテムの幅を調整 (4つ並べる想定) */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related_post_container li:hover {
    transform: translateY(-5px); /* ホバー時に少し持ち上げる */
}

.related_post_container li a {
    text-decoration: none;
    color: inherit;
}

/* アイキャッチ画像のスタイル */
.related_thumb {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.related_thumb img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 画像が崩れないように中央に調整 */
}

/* 記事タイトルのスタイル */
.related_title {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    text-align: center;
    line-height: 1.4;
}

/*黄色いマーカー*/
.ymarker {
padding: 0 2px;
background: linear-gradient(transparent 50%, #ffff7d 10%);
}

@media (max-width: 768px) {
    /* タブレットサイズ対応：2列表示 */
    .related_post_container li {
        width: calc(50% - 10px);
    }
}

