/*
Theme Name: クレストスキンクリニックブログ
*/

/*アイキャッチ*/


#blog .eyecatch_bg 
/* #single.blog .eyecatch_bg*/ { 
    background: url(_img/eyecatch_blog-sp.jpg) no-repeat top right;
    background-size: calc((100vw - 50px));
    height: 430px;
}

#single.blog .eyecatch_mt {
	padding-top: 60px;
}

#news,
#news_post{
	border-bottom: 3px solid #D6CC8B;
}


/*記事一覧*/
.post_list li{
	position: relative;
    border-bottom: #D6CC8B 1px solid;
}

/* .post_list li::after{
	content: "";
	position: absolute;
	width: 12px;
	height: 12px;
	border-top: 2px solid #D6CC8B;
	border-right: 2px solid #D6CC8B;
	transform: rotate(45deg);
	top: 0;
	bottom: 0;
	right: 10px;
	margin: auto;
}

.post_list li::before{
	content: "";
	position: absolute;
	width: 17px;
	height: 2px;
	background-color: #D6CC8B;
	top: 0;
	bottom: 0;
	right: 10px;
	margin: auto;
} */

.post_list li a.a_single_link .p_title .arrow{
	position: relative;
}
.post_list li a.a_single_link .p_title .arrow::after{
	content: "";
	position: absolute;
	width: 14px;
	height: 2px;
	background-color: #D6CC8B;
	top: 2px;
	bottom: 0;
	right: -20px;
	margin: auto;
}

.post_list li a.a_single_link .p_title .arrow::before{
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border-top: 2px solid #D6CC8B;
	border-right: 2px solid #D6CC8B;
	transform: rotate(45deg);
	top: 2px;
	bottom: 0;
	right: -20px;
	margin: auto;
}

.post_list li a:hover{
	opacity: 0.7;
	text-decoration: none;
}

.post_list li a.a_single_link{
	min-height: 84px;
}

.post_list li .thumb{
	float: left;
	margin: 5px 15px 5px 0;
	width: 110px;
}

@media (min-width: 768px) {
	.post_list li .thumb{
		float: unset;
		margin: 0;
		width: auto;
	}

}


/*.post_list .thumb img {
	width: 100%;
	height: auto;
	aspect-ratio:3/2;
	object-fit: cover;
	object-position: top;
	background-color: #fff;
}*/

.post_list .thumb {
	position: relative;
	overflow: hidden;
}

.post_list .thumb::before {
	content: "";
	display: block;
	padding-top: 66%;
}

.post_list .thumb img {
	position: absolute;
	width: 100%;
	height: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/*記事*/
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6{
	color: #D6CC8B;
	font-weight: bold;
}


.post h2,
.post h3,
.post h4,
.post h5,
.post h6{
	letter-spacing: 0.1em;
	margin-bottom: 1.3rem;
    margin-top: 3rem;
}

.post h2{
	font-size: 1.5rem;
    padding: 0.5em 0;
    border-top: solid 3px #D6CC8B;
    border-bottom: solid 3px #D6CC8B;
}

.post h3{
	font-size: 1.25rem;
	padding: 2px 0 2px 10px;
    border-left: #D6CC8B 7px solid;
}

.post h4{
	font-size: 1.1rem;
	position: relative;
    padding: 0.5em 0;
    border-bottom: solid 1px #D6CC8B;
}


.post h5{
	font-size: 1rem;
}

.post h6{
	font-size: 0.9rem;
}

.post a{
	color: #D6CC8B;
	text-decoration: underline;
}


.post_thum,
.post .wp-block-image,
.post .wp-block-gallery.has-nested-images figure.wp-block-image{
	width: 100%;
	height:100%;
	max-width: 600px;
}

.post_thum{
	margin: auto;
}

.post_thum img{
    width: 100%;
	height: auto;
    max-height: 600px;
    object-fit: contain;
}

/*テーブル*/
.table_custom_wrapper{
	overflow-x: auto;
}
.table_custom{
	table-layout: fixed;
}
.table_custom.table_scroll{ /*スマホ時横スクロール*/
	min-width: 895px;
	width: 100%;
}
.table_custom.table_w100{ /*横幅いっぱい、セルが均等*/
	width: 100%;
}
.table_custom tr{
	border-top: 4px solid #fff;
}
.table_custom th,
.table_custom td {
	white-space: normal;         /* ← 改行OKにする */
	word-break: break-word;      /* ← 長い語も折り返す */
}
.table_custom th{
	background: #CCB772;
    color: #fff;
    text-align: center;
    border-bottom: 4px solid #fff;
    border-right: 4px solid #fff;
    padding: 0px 10px;
}
.table_custom td{
    background: #F9F7EE;
    border-right: 4px solid #fff;
    padding: 11px;
}
.table_custom th.w_10{
	width: 10%;
}
.table_custom th.w_20{
	width: 20%;
}
.table_custom th.w_25{
	width: 25%;
}
.table_custom th.w_30{
	width: 30%;
}
.table_custom th.w_40{
	width: 40%;
}
.table_custom th.w_50{
	width: 50%;
}
.table_custom th.w_60{
	width: 60%;
}
.table_custom th.w_70{
	width: 70%;
}
.table_custom th.w_80{
	width: 80%;
}

/*ページネーション*/
nav.navigation .nav-links{
	display: flex;
	justify-content: center;
	align-items: center;
	margin: auto;
	width: 100%;
	text-align: center;
	position: relative;
}

nav.navigation .page-numbers {
	margin: 0 10px;
	color: #D6CC8B;
}

nav.navigation .page-numbers.next{
	position: absolute;
	right: 0;
	font-size: 0;
}


nav.navigation .page-numbers.next::after{
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-top: 2px solid #D6CC8B;
	border-right: 2px solid #D6CC8B;
	transform: rotate(45deg);
	top: 0;
	bottom: 0;
	margin: auto;
}

nav.navigation .page-numbers.prev{
	position: absolute;
	left: 0;
}

nav.navigation .page-numbers.prev::after{
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-bottom: 2px solid #D6CC8B;
	border-left: 2px solid #D6CC8B;
	transform: rotate(45deg);
	top: 0;
	bottom: 0;
	margin: auto;
}


nav.navigation .page-numbers.next span,
nav.navigation .page-numbers.prev span{
	display: none;
}


nav.navigation .page-numbers.current {
	padding: 0px 10px;
	color: #fff;
	background-color: #D6CC8B;
}

nav.navigation a.page-numbers {
	padding: 0px 10px;
}

/*前後の記事*/

.next_post a,
.prev_post a{
	position: relative;
	padding: 0 10px;
}
.next_post a::before{
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-bottom: 2px solid #D6CC8B;
	border-left: 2px solid #D6CC8B;
	transform: rotate(45deg);
	top: 0;
	bottom: 0;
	left: 0;
	margin: auto;
}
.prev_post a::after{
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-top: 2px solid #D6CC8B;
	border-right: 2px solid #D6CC8B;
	transform: rotate(45deg);
	top: 0;
	bottom: 0;
	right: 0;
	margin: auto;
}

/*下部メニュー*/



#category .eyecatchTitle {
	border-bottom: none;
}

#category ul li{
	display: flex;
	align-items: center;
}

#category ul li a{
	color: #777777;
}

#category ul li::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 8px solid #D6CC8B;
    border-top: 5px solid rgba(0,0,0,0);
    border-bottom: 5px solid rgba(0,0,0,0);
    margin-right: 10px;
}

a[data-toggle="collapse"]{
	position: relative;
}

a[data-toggle="collapse"]:hover{
	cursor: pointer;
}

a[data-toggle="collapse"]::before{
	content: "";
	position: absolute;
	width: 16px;
	height: 2px;
	background: #D6CC8B;
	right: 10px;
	top: 0;
	bottom: 0;
	margin: auto;
}


a[data-toggle="collapse"]::after{
	content: "";
	position: absolute;
	width: 2px;
	height: 16px;
	background: #D6CC8B;
	right: 17px;
	top: 0;
	bottom: 0;
	margin: auto;
	transition: .5s all ease;
}


a[data-toggle="collapse"][aria-expanded="true"]::after{
	transform: rotate(90deg);
}

#foot_column form input{
	background-image: url("_img/icon_search.svg") ;
	background-size: auto 60%;
	background-position: right 10px center;
	background-repeat: no-repeat;
}

#foot_column {
	background: #f9f7ee;
	padding-top: 50px;
	border-bottom: 3px solid #D6CC8B;
}

/* 記事内の装飾 --------------------------------- */
/* 文字の行間 */
.post p,
.post span,
.post li,
.post tr,
.post td {
	 /*line-height: 2!important;*/
	 line-height:  1.8!important;
}
/* リスト */
.post ul ,
.post ol {
	margin-left: 25px;
}
/* リスト 番号あり */
.post ol li {
	list-style: decimal;
	margin-bottom: 5px;
}
/* リスト ●あり */
.post ul li ,
.post ul li ul li ul li {
	list-style: disc;
	margin-bottom: 5px;
}
.post ul li ul li {
	list-style: circle;
	margin-bottom: 5px;
}
/* リスト タグの所は表示なし */
.post .ct_tag {
	margin-left: 0;
}
.post .ct_tag li {
	list-style: none;
	margin-bottom: 0;
}
/* 引用 */
.post blockquote.wp-block-quote {
	border-left: 5px solid #D6CC8B;
	background-color: #F9F7ED;
	position: relative;
    padding: 15px;
    box-sizing: border-box;
}
/*.post blockquote.wp-block-quote:before{
    display: inline-block;
    position: absolute;
    top: 18px;
    left: 15px;
    content: "“";
    color: #D6CC8B;
    font-size: 50px;
    line-height: 1;
    font-weight: 900;
}*/
/* 引用（プルクオート） */
.post .wp-block-pullquote {
	border-top: 5px solid #D6CC8B;
	border-bottom: 5px solid #D6CC8B;
    box-sizing: border-box;
}
.post .wp-block-pullquote blockquote {
	margin-bottom: 0;
}
/* テーブル デフォルト */
.post .wp-block-table table ,
.post .wp-block-table table th ,
.post .wp-block-table table td {
	border: 1px solid #D6CC8B;
	padding: 5px;
}
.post .wp-block-table table thead  {
	border-bottom: 3px solid #D6CC8B;
	background-color: #F9F7ED;
}
.post .wp-block-table table tfoot {
	border-top: 3px solid #D6CC8B;
	background-color: #F9F7ED;
}
.post .wp-block-table figcaption {
    text-align: center;
}
/* テーブル ストライプ */
.post .wp-block-table.is-style-stripes table ,
.post .wp-block-table.is-style-stripes table th ,
.post .wp-block-table.is-style-stripes table td {
	border: none;
	padding: 5px;
}
.post .wp-block-table.is-style-stripes table th {
	background-color: #FFF;
}
.post .wp-block-table.is-style-stripes {
	border-bottom: 1px solid #D6CC8B;
}
.post .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #F9F7ED;
}
.post .wp-block-table.is-style-stripes figcaption {
    text-align: center;
}
/* 整形済みのテキスト */
.post pre.wp-block-preformatted {
    font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
	color: #666464;
	letter-spacing: 0.05rem;
	line-height: 1.8;
}
/* ダウンロード */
.post .wp-block-file a {
    color: #D6CC8B;
	text-decoration: underline;
}
.post .wp-block-file a.wp-block-file__button {
    color: #fff;
	background-color: #D6CC8B;
}

/* ボタン */
.post .wp-block-button a.wp-block-button__link {
    color: #fff;
	background-color: #D6CC8B;
}
/* ---------------------------------------------- */


@media (min-width: 768px) {
	#news .eyecatch_bg {
		background: url("../../../../_img/flow/eyecatch_flow-pc.png") no-repeat top right -120px;
		background-size: 125%;
		height: 300px;
	}

	#blog .eyecatch_bg,
	#single.blog .eyecatch_bg {
		background: url("_img/eyecatch_blog-pc.png") no-repeat top right -120px;
		background-size: 125%;
		height: 300px;
	}

	
	
	#blog .post_list li::after,
	#single.blog .post_list li::after{
	bottom: -50%;
	}

	#blog .post_list li::before,
	#single.blog .post_list li::before{
		bottom: -50%;
	}
	
	#single .post_list{
		border-bottom: 1px solid #D6CC8B;
	}

	
	.post_list li{
		border-bottom: none;
	}


	
	/*下部メニュー*/
	#foot_column{
		padding: 80px 0;
		border: none;
	}
	#category .eyecatchTitle .col-10{
		border-bottom: #D6CC8B 1px solid !important	
	}


	/* 整形済みのテキスト */
	.post pre.wp-block-preformatted {
		font-size: 1rem;
	}

}
@media (min-width: 992px) {
	#news .eyecatch_bg {
		background-size: cover;
		height: 450px;
	}

	#blog .eyecatch_bg,
	#single.blog #eyecatch .eyecatch_bg {
		background-size: cover;
		height: 450px;
	}

}
