/*----------------------------------------
    投稿系（スタイルハウス）
----------------------------------------*/
/* レイアウト */
.post_grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 3.5%;
    row-gap: 5em;
}
.post_grid.ver2{
    grid-template-columns: repeat(3, 1fr);
}
.post_grid.ver3{
    grid-template-columns: repeat(2, 1fr);
}
.post_grid.ver_event{
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}
.post_grid.post_top li:nth-child(4){
	display: none;
}
.post_single_flex{
    display: flex;
    column-gap: 3%;
    row-gap: 20px;
}
.post_single_flex >div:nth-child(1) {
    max-width: 450px;
    width: 45%;
}
.post_single_flex >div:nth-child(2){
    width: 55%;
}
.post_single_flex.ver2 >div:nth-child(1) {
    max-width: 500px;
    width: 50%;
}
.post_single_flex.ver2 >div:nth-child(2){
    width: 45%;
}
@media screen and (max-width: 768px){
	.post_grid{
		grid-template-columns: repeat(3,1fr);
	}
}
@media screen and (max-width: 599px){
	.post_grid,.post_grid.ver2{
		grid-template-columns: repeat(2,1fr);
	}
    .post_grid.ver3{
		grid-template-columns: repeat(1,1fr);
	}
    .post_grid.ver_event {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post_grid.ver_event > :first-child {
        grid-column: 1 / -1;
    }
	.post_grid.post_top li:nth-child(4){
        display: block;
    }
    .post_single_flex{
        flex-direction: column;
    }
    .post_single_flex >div:nth-child(1), 
    .post_single_flex.ver2 >div:nth-child(1){
        max-width: 100%;
    }
    .post_single_flex >div:nth-child(1), .post_single_flex >div:nth-child(2),
    .post_single_flex.ver2 >div:nth-child(1),.post_single_flex.ver2 >div:nth-child(2){
        width: 100%;
    }

}
/* タイトル */
.post_ttl span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post_ttl.ver1 span {
    -webkit-line-clamp: 1;
}
.post_ttl.ver2 span {
    -webkit-line-clamp: 2;
}
/* NEW */
.post_new{
    font-size: var(--text18);
    color: #b70000;
}
.post_single_flex .post_new{
    position: unset;
}
.splide_works_top .post_new{
    position: absolute;
    top: -1.2em;
    left: 0;
}
/* カテゴリー*/
.post_cat{
    font-family: "Noto Sans JP", sans-serif;
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.7em;
    row-gap: 5px;
    font-size: clamp(1rem, 2.34vw, 1.4rem);
    font-weight: 400;
}
.post_cat span{
    padding: 0 1em;
    background: #000;
    color: #fff;
}
/* カテゴリー（タクソノミー）----------------------------------- */
/* 固定 */
.post_tab {
    display: grid;
    grid-template-columns: repeat(var(--tab-columns), minmax(0, 1fr));
    width: 100%;
}
.post-type-archive-event_news .post_tab,#jibunhouse_list .post_tab {
    --tab-columns: 2;
}
.post-type-archive-event_news .post_tab {
    max-width: calc(200px * (var(--tab-columns)));
}
.post-type-archive-works .post_tab,.tax-works_cat .post_tab {
    --tab-columns: 5;
    /* --tab-columns: 6; */
    max-width: 100%;
}
.post_tab li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 15px 5px;
    border: 1px solid #1b1b1b;
    font-size: clamp(1.2rem, 1.3vw, 1.4rem);
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.post-type-archive-works .post_tab li:last-child a,.tax-works_cat .post_tab li:last-child a{
    flex-wrap: wrap;
}
.post-type-archive-works .post_tab li:last-child a span,.tax-works_cat .post_tab li:last-child a span{
    font-size: clamp(0.8rem, 1.3vw, 1.2rem);
    line-height: 1.5;
}
.post_tab li + li a {
    border-left: none;
}

.post_tab li a.active,
.post_tab li a:hover {
    background: #1b1b1b;
    color: #fff;
}
@media screen and (max-width: 599px) {
    .post-type-archive-works .post_tab,.tax-works_cat .post_tab {
        --tab-columns: 3;
    }
    .post_tab li a {
        border: 1px solid #1b1b1b;
    }

    .post_tab li:nth-child(3n + 2) a,
    .post_tab li:nth-child(3n + 3) a {
        border-left: none;
    }

    .post_tab li:nth-child(3n + 1) a {
        border-left: 1px solid #1b1b1b;
    }
    .post_tab li:nth-child(n + 4) a {
        border-top: none;
    }
}
/* 変動 */
.post_change_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.post_change_list li {
    padding: 0.7em 1em;
    box-sizing: border-box;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: var(--text12);
}
.post_change_list li:hover,.post_change_list li.active {
    background: var(--color-blackgray);
}
.post_change_list li a{
    color: var(--color-gray2);
}
.post_change_list li:hover a,.post_change_list li.active a {
    color: #fff;
}
/* 施工事例：詳細 */
.homes_data_box{
    background: #f0f0f0;
    padding: 1em 2em;
    box-sizing: border-box;
    max-width: 430px;
    width: 100%;
}
.homes_data_box p.jost{
    color: #bfbfbf;
}
/* モデルハウス：詳細 */
.modelhouse_plan_list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid #000;
	border-left: 1px solid #000;
}

.modelhouse_plan_item {
	display: grid;
	grid-template-columns: 40% 60%;
	border-right: 1px solid #000;
	border-bottom: 1px solid #000;
}

.modelhouse_plan_label {
	background: #eee;
	border-right: 1px solid #000;
}

.modelhouse_plan_label,
.modelhouse_plan_value {
	padding: 1em;
	line-height: 1.5;
	color: #1a1a1a;
}


/* スマホ */
@media screen and (max-width: 599px) {
	.modelhouse_plan_list {
		grid-template-columns: 1fr;
	}
}

.modelhouse_map{
    aspect-ratio: 1350 / 560;
}
/*----------------------------------------
    一覧ページャー
----------------------------------------*/
.pager {
    display: flex;
    justify-content: center;
}
.pager ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
}
.pager li a,
.pager li .current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    margin-right: 4px;
    color: #fff;
    background: #1b1b1b;
	/* border: 1px solid #898787; */
    text-decoration: none;
    transition: all 0.4s;
    box-sizing: border-box;
}
.pager li a:not(.prev):not(.next),
.pager li .current {
    aspect-ratio: 1 / 1;
}
.pager li a.prev,
.pager li a.next {
    width: auto;
    padding-inline: 20px;
}
.pager li .current {
    background: #737373;
    color: #fff;
}
.pager li a.prev { margin-right: 8px; }
.pager li a.next { margin-left: 4px; }

.pager li a:hover {
    background: #737373;
}
.pager li a img {
    transition: all 0.4s;
}
.page-numbers.dots {
    display: flex;
    align-items: center;
    height: 50px;
    padding-inline: 5px;
    margin-right: 4px;
}
@media screen and (max-width: 599px){
    .pager li {
        font-size: 1.1rem;
    }
    .pager li a,
    .pager li .current {
        height: 27px;
        line-height: 27px;
    }
    .pager li a:not(.prev):not(.next),
    .pager li .current {
        aspect-ratio: 1 / 1;
    }
    .pager li a.prev,
    .pager li a.next {
        padding-inline: 8px;
    }
    .page-numbers.dots {
        height: 27px;
    }
    .pager li a.prev img,
    .pager li a.next img {
        vertical-align: middle;
    }
}



/*----------------------------------------
	詳細ページャー
----------------------------------------*/
.single_pager {
    display: flex;
    justify-content: center;
    gap: 1%; 
}
.single_pager > a{
    display: none;
} 
.single_pager li {
    list-style: none;
    display: block;
    text-align: center;
}
.single_pager li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 1em;
    height: 50px;
    color: #fff;
    background: #1b1b1b;
    text-decoration: none;
    font-size: clamp(1.2rem, 1.34vw, 1.4rem);
    box-sizing: border-box;
}
.single_pager li a:hover {
    background: #737373;
}
.single_pager li img {
    display: inline-block;
    max-width: 10px;
    aspect-ratio: 5 / 8;
    width: 10%;
}
.single_prev { width: 20%;}
.single_list { width: 60%; }
.single_next { width: 20%; }

@media screen and (max-width: 768px){
    .single_prev { width: 30%;}
    .single_list { width: 40%; }
    .single_next { width: 30%; }
    
}
@media screen and (max-width: 599px){
    .single_pager li a {
        gap: 3px;
    }
}

@media screen and (max-width: 450px){
    .single_prev { width: 35%; }
    .single_list { width: 30%; }
    .single_next { width: 35%; }
}
