@charset "UTF-8";
#news .container,
#works .container {
padding: 50px 0 100px 0;
}

#news main,
#works main{
margin: 0;
}

#works main{
width: 1200px;
margin: 0 auto;
}

#news main p,
#works main p{
font-family: 'Zen Old Mincho', 'Noto Sans JP', "游ゴシック Medium", "YuGothicM", "YuGothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

#post-list footer {
background:initial;
}

/*================================title================================*/
.news_blog h1,
.works_blog h1 {
width: 100%;
margin-bottom: 50px;
font-size: 20px;
font-weight: bold;
line-height: 1.3;
padding: 25px 25px 25px 80px;
border-bottom: 2px dotted #E8E9DB;
}
.news_blog h1 span,
.works_blog h1 span {
color: #988D82;
display: block;
letter-spacing: 1px;
font-size: 12px;
padding: 0;
}
#categry_title {
background: #fff url(../images/icon_archive.svg) no-repeat left 20px center;
background-size: 50px;
text-align: left;
color: #333;
}
#archive_title {
background: #fff url(../images/icon_archive.svg) no-repeat left 20px center;
background-size: 50px;
text-align: left;
color: #333;
}
#search_title {
background: #fff url(../images/icon_search.svg) no-repeat left 20px center;
background-size: 50px;
text-align: left;
color: #333;
}
#h_title {
background: #fff url(../images/icon_archive.svg) no-repeat left 20px center;
background-size: 50px;
text-align: left;
color: #333;
}

@media only screen and (max-width: 767px) {
#news .container,
#works .container {
padding: 25px 0 50px 0;
}
#works main{
width: 100%;
}
    
body:not(.home) main > section {
padding: 0;
}
#works .container,
#news .container{
padding: 0;
}
.works_blog h1,
.news_blog h1 {
margin-bottom: 30px;
font-size: 15px;
padding: 15px 25px 15px 65px;
border-bottom: 2px dotted #E8E9DB;
}
.works_blog h1 span,
.news_blog h1 span {
font-size: 10px;
}
#categry_title {
background: #fff url(../images/icon_archive.svg) no-repeat left 20px center;
background-size: 35px;
}
#archive_title {
background: #fff url(../images/icon_archive.svg) no-repeat left 20px center;
background-size: 35px;
}
#search_title {
background: #fff url(../images/icon_search.svg) no-repeat left 20px center;
background-size: 35px;
}
#h_title {
background: #fff url(../images/icon_archive.svg) no-repeat left 20px center;
background-size: 35px;
}
}

/*-------------- news_blog ---------------*/
.news_blog{
width: 1200px;
display: flex;
justify-content: space-between;
margin: auto;
}
.news_blog.item_blog main {
width: 1200px;
margin: 50px auto;
}
.news_blog main {
width: 840px;
}
.news_blog aside {
width: 320px;
}
.news_blog aside h2 {
color: #333;
display: block;
font-weight: bold;
font-size: 16px;
line-height: 1.3;
padding: 15px 20px 15px 60px;
box-sizing: border-box;
background: #fff;
border-bottom: 1px dotted #c8dce3;
border-radius: 10px 10px 0 0;
}
.news_blog .accordion nav{
background: #fff;
padding-bottom: 0;
}
.news_blog aside h2.recent_li {
background-image: url("../images/icon_post.svg");
background-size: 40px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.news_blog aside h2.category_li {
background-image: url(../images/icon_category.svg);
background-size: 40px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.news_blog aside h2.archive_li {
background-image: url(../images/icon_archive.svg);
background-size: 40px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.news_blog aside h2 span {
letter-spacing: 1px;
color: #988D82;
display: block;
font-size: 11px;
font-weight: bold;
}
.news_blog aside .submenu {
display: block;
border-bottom: 1px dotted #c8dce3;
}
.news_blog aside .submenu li {
list-style: none;
border-top: 1px dotted #c8dce3;
}
.news_blog aside .submenu li a {
color: #333;
margin: auto;
display: block;
font-size: 14px;
padding: 15px 40px 15px 15px;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: 0.1s;
text-decoration: none;
background: url(../images/icon_arrow.svg) no-repeat right center;
background-size: 14px;
text-decoration: none;
}
.news_blog aside .submenu li a:hover {
background: #eef9fc url(../images/icon_arrow.svg) no-repeat right center;
background-size: 14px;
}
.news_blog aside .submenu li:first-child {
border-top: none;
}

@media only screen and (max-width: 767px) {
.works_blog,
.news_blog {
width: 95%;
display: block;
margin: 0 auto;
}
.news_blog.item_blog main {
width: 100%;
margin: 10px auto 30px;
}
.news_blog main {
width: 100%;
margin: 0 auto 30px;
}
.news_blog aside {
width: 100%;
margin: 30px 0 0;
}
.news_blog aside h2 {
font-size: 13px;
padding: 10px 20px 10px 55px;
}
.news_blog aside h2.recent_li {
background-image: url(../images/icon_post.svg);
background-size: 35px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.news_blog aside h2.category_li {
background-image: url(../images/icon_category.svg);
background-size: 35px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.news_blog aside h2.archive_li {
background-image: url(../images/icon_archive.svg);
background-size: 35px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.news_blog aside h2 span {
font-size: 10px;
}
.news_blog aside .submenu {
display: none;
}
.news_blog aside .submenu li a {
font-size: 12px;
padding: 10px 40px 10px 15px;
}
}

/*================================accordion================================*/
.accordion nav {
margin-bottom: 30px;
}
.accordion .link {
cursor: pointer;
position: relative;
}
.accordion i {
width: 20px;
height: 20px;
position: absolute;
top: 0;
bottom: 0;
right: 10px;
margin: auto;
transition: 0.5s;
}
.accordion i img {
display: block;
width: 100%;
}
.accordion .open i {
width: 20px;
height: 20px;
position: absolute;
top: 0;
bottom: 0;
right: 10px;
margin: auto;
transform: rotate(180deg);
}
@media (max-width: 767px) {
.accordion nav {
margin-bottom: 0;
}
}
/*================================searchform================================*/
#searchform {
width: 80%;
margin: 0 auto;
position: relative;
margin-bottom: 30px;
}
#searchform input[type=search] {
font-size: 16px;
-webkit-appearance: none;
appearance: none;
outline: none;
position: relative;
width: 100%;
height: 50px;
padding: 12px;
border: 3px solid #e5e5e5;
background: linear-gradient(to bottom, #f7f7f7 0%, #ffffff 100%);
border-radius: 50px;
}
#searchform input[type=search]:focus {
position: relative;
width: 100%;
height: 50px;
padding: 12px;
border: 3px solid #E8E9DB;
background: #fff;
}
#searchform input[type=submit] {
font-size: 14px;
position: absolute;
right: 5px;
top: 0;
height: 50px;
width: 50px;
border: none;
background: url(../images/btn_search.svg) no-repeat center center;
background-size: 32px;
transition: 0.1s;
}
#searchform input[type=submit]:hover {
opacity: 0.7;
cursor: pointer;
}
#searchform input::-webkit-input-placeholder {
color: #e5e5e5;
}
#searchform input::-moz-placeholder {
color: #e5e5e5;
}
#searchform input:-ms-input-placeholder {
color: #e5e5e5;
}
#searchform input::-ms-input-placeholder {
color: #e5e5e5;
}
#searchform input::placeholder {
color: #e5e5e5;
}
#searchform input[type=search]:focus::-webkit-input-placeholder {
color: #E8E9DB;
}
#searchform input[type=search]:focus::-moz-placeholder {
color: #E8E9DB;
}
#searchform input[type=search]:focus:-ms-input-placeholder {
color: #E8E9DB;
}
#searchform input[type=search]:focus::-ms-input-placeholder {
color: #E8E9DB;
}
#searchform input[type=search]:focus::placeholder {
color: #E8E9DB;
}
#searchsubmit {
padding: 0;
margin: 0;
}
@media (max-width: 767px) {
#searchform {
padding: 0 5px;
margin-bottom: 20px;
}
#searchform input[type=search] {
width: 100%;
font-size: 12px;
padding: 5px;
border-radius: 0;
height: 35px;
}
#searchform input[type=search]:focus {
width: 100%;
height: 50px;
}
 #searchform input[type=submit] {
position: absolute;
right: 10px;
top: 0;
}
}

/*================================pagenation================================*/
.pager {
padding: 50px 0;
overflow: hidden;
}
.pager ul {
list-style: none;
position: relative;
left: 50%;
float: left;
}
.pager ul li {
margin: 4px;
position: relative;
left: -50%;
float: left;
}
.pager ul li span,
.pager ul li a {
display: block;
font-size: 15px;
padding: 0.88em 1.1em;
background: #D5CFC6;
color: #fff;
text-decoration: none;
transition: 0.6s;
box-sizing: border-box;
border-radius: 50%;
line-height: 1;
}
.pager ul li.current span {
background: #988D82;
color: #fff;
font-weight: bold;
}
.pager ul li.prev a, .pager ul li.next a {
display: block;
font-size: 15px;
padding: 0.88em 1.1em;
background: #D5CFC6;
text-decoration: none;
border-radius: 30px;
}
.pager ul li a:hover {
background: #988D82;
color: #fff;
transition: 0.1s;
}
.pager ul li.prev a:hover, .pager ul li.next a:hover {
display: block;
background: #988D82;
text-decoration: none;
}
@media (max-width: 767px) {
.pager {
padding: 0;
width: 100%;
}
.pager ul li span,
.pager ul li a {
display: block;
font-size: 12px;
padding: 0.65em 0.85em;
line-height: 1;
}
.pager ul li.prev a, .pager ul li.next a {
font-size: 12px;
padding: 0.65em 0.85em;
}
.pager ul li.prev a:hover, .pager ul li.next a:hover {
font-size: 12px;
padding: 0.65em 0.85em;
}
}
/*================================post-list================================*/
#post-list {
display: flex;
flex-wrap: wrap;
}
#post-list.col3 article {
width: calc(100% / 3 - 20px);
}
#post-list article {
width: calc(100% / 2 - 20px);
margin: 10px;
}
#post-list article a {
width: 100%;
height: 100%;
color: #333;
display: block;
text-decoration: none;
background: #fff;
transition: 0.3s;
padding: 0;
}
#post-list article a:hover {
opacity: 0.7;
}
#post-list article a .image_wrap {
position: relative;
padding-top: 75%;
background: #e3dace;
}
#post-list article a .image_wrap img {
    object-fit: cover;
    width: 100%;
    height: 100% !important;
    line-height: 0;
    position: absolute;
    top: 0;
    transition: 0.3s;
}
#post-list article a .text_wrap {
padding: 15px;
padding-bottom: 0;
margin-bottom: 0;
}
body#works #post-list article a .text_wrap {
padding-bottom: 10px;
}
#post-list article a .text_wrap .title {
font-size: 16px;
font-weight: 600;
padding-bottom: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
}
#post-list article a .text_wrap p {
font-size: 14px;
font-weight: 500;
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0 0 10px;
}
#post-list article a .text_wrap .tag {
display: inline-flex;
flex-wrap: wrap;
}
#post-list article a .text_wrap .tag object {
margin: 0 5px 5px 0;
}
body#works #post-list article a .text_wrap .category {
margin-bottom: 5px;
}
#post-list article a .text_wrap .category object {
display: inline-block;
margin-bottom: 0;
}
#post-list article a .text_wrap .category object a {
display: block;
color: #fff;
font-size: 12px;
text-align: center;
border-radius: 20px;
border: 1px solid #988D82;
background-color: #988D82;
padding: 4px 10px 4px;
box-sizing: border-box;
}
/* 新築住宅 (URLに 'custom_house' を含む場合) */
#post-list article a .text_wrap .category object a[href*="custom_house"] {
  background-color: #8c7355; /* お好みの背景色 */
  color: #ffffff; /* 文字色 */
}

/* リノベーション (例: URLに 'renovation' を含む場合) */
#post-list article a .text_wrap .category object a[href*="renovation"] {
  background-color: #55778c;
  color: #ffffff;
}

/* リフォーム (例: URLに 'reform' を含む場合) */
#post-list article a .text_wrap .category object a[href*="reform"] {
  background-color: #5b8c55;
  color: #ffffff;
}
#post-list article a .text_wrap .tag object a {
display: block;
color: #333;
font-size: 10px;
text-align: center;
border-radius: 20px;
border: 1px solid #e9e1d2;
padding: 4px 10px 4px;
box-sizing: border-box;
}
#post-list article a time {
color: #333;
font-weight: bold;
font-size: 14px;
display: block;
text-align: right;
padding: 0 15px 15px;
}
body#works #post-list article a time {
display: none;
}
@media only screen and (max-width: 767px) {
#post-list {
display: flex;
flex-wrap: wrap;
}
#post-list.col3 article {
width: 46%;
}
#post-list article {
width: 100%;
max-width: 320px;
margin: 0 auto 15px;
}
#post-list article a .image_wrap {
position: relative;
padding-top: 75%;
background: #E8E9DB;
}
#post-list article a .text_wrap {
padding: 10px 10px 5px;
}
#post-list article a .text_wrap .title {
font-size: 12px;
padding-bottom: 5px;
}
#post-list article a .text_wrap p {
font-size: 12px;
margin: 0;
padding-bottom: 5px;
}
#post-list article a .text_wrap .category object a,
#post-list article a .text_wrap .tag object a {
padding: 2px 8px 2px;
 font-size: 9px;
}
#post-list article a .text_wrap .category object a {
letter-spacing: 0;
}
#post-list article a time {
font-size: 12px;
padding: 0 10px 10px;
}
}

/*================================post_box================================*/
article#post_box {
background: #fff;
padding: 50px 50px 50px;
margin-bottom: 100px;
}
article#post_box time {
color: #888;
display: block;
text-align: right;
font-size: 14px;
padding: 20px;
border-bottom: 1px dotted #ccc;
margin-bottom: 20px;
}
#works article#post_box time {
display: none;
}
article#post_box h1 {
position: relative;
width:100%;
display: inline-block;
color: #333;
font-size: 20px;
font-weight: 600;
line-height: 1.4;
background: #fff;
margin: 0 0 10px 0;
padding: 20px;
border-bottom: 10px double #D5CFC6;
}
article#post_box h1::before {
content: "";
position: absolute;
top: -30px;
left: 0;
z-index: 0;
width: 30px;
height: 30px;
background: url(../images/deco_catch.svg) no-repeat;
background-size: 100%;
}
article#post_box #post_main h2 {
color: #333;
font-size: 20px;
font-weight: bold;
padding: 0 15px 15px 15px;
margin: 2em 0 0.5em;
}
article#post_box #post_main h3 {
color: #fff;
background: #988D82;
font-size: 16px;
font-weight: bold;
padding: 10px 15px;
margin: 2em 0 0.5em;
margin-bottom: 20px;
}
article#post_box #post_main h4 {
color: #333;
font-size: 16px;
font-weight: bold;
border-bottom: 2px dotted #E8E9DB;
padding: 0 0 5px;
margin: 1.5em 0 0.5em;
}
article#post_box #post_main h5 {
color: #333;
font-size: 16px;
font-weight: bold;
margin: 1em 0 0.2em;
}
article#post_box #post_main h5:before {
    width: 7px;
    background: #988D82;
}
article#post_box #post_main p {
padding: 0 20px;
margin-bottom: 1em;
}
article#post_box #post_main img {
width: 100%;
height: auto;
margin: 30px 0;
}
article#post_box #post_main ul {
padding: 0 20px;
list-style: disc;
margin: 1em 0 1em 1.5em;
}
article#post_box #post_main ul li {
list-style-position: outside;
margin: 0.5em 0;
line-height: 1.4;
}
article#post_box #post_main ol {
padding: 0 20px;
list-style-type: decimal;
margin: 1em 0 1em 1.5em;
}
article#post_box #post_main ol li {
list-style-position: outside;
margin: 0.5em 0;
line-height: 1.4;
}
article#post_box #post_main ol li::marker {
font-weight: bold;
}
article#post_box #post_main blockquote {
position: relative;
padding: 3em 1.5em 3em;
margin: 1.5em 0;
line-height: 1.4;
background: #fff;
border: 1px dotted #eee;
}
article#post_box #post_main blockquote::before {
content: "“";
color: #ccc;
font-size: 50px;
line-height: 0;
position: absolute;
top: 0.5em;
left: 0.1em;
}
article#post_box #post_main blockquote::after {
content: "”";
color: #ccc;
font-size: 50px;
line-height: 0;
position: absolute;
bottom: 0.2em;
right: 0.4em;
}
article#post_box .tag {
display: flex;
flex-wrap: wrap;
margin-top: 20px;
padding-top: 20px;
border-top: 1px dotted #ccc;
}
article#post_box .tag span {
display: inline-block;
margin: 0 0 5px 5px;
}
article#post_box .tag span a {
display: block;
border: none;
color: #333;
font-size: 10px;
text-align: center;
border-radius: 20px;
background: #fff;
border: 1px solid #988D82;
padding: 4px 15px 4px;
text-decoration: none;
transition: 0.3s;
}
article#post_box .tag span a:hover {
opacity: 0.7;
}
@media only screen and (max-width: 767px) {
article#post_box {
background: #fff;
padding: 0 10px 10px;
margin-bottom: 0;
width: 95%;
box-sizing: border-box;
margin: 0 auto;
}
article#post_box time {
font-size: 12px;
padding: 10px;
}
body#works article#post_box time {
display: none;
}
article#post_box h1 {
width:100%;
font-size: 15px;
line-height: 1.4;
margin: 0;
padding: 15px;
border-bottom: 6px double #D5CFC6;
}
article#post_box #post_main h2 {
font-size: 15px;
line-height: 1.4;
border-left: 3px solid #D5CFC6;
padding: 0 0 0 10px;
margin: 1.5em 0 0.5em;
}
article#post_box #post_main h3 {
font-size: 14px;
line-height: 1.4;
padding: 8px 10px;
margin: 1.5em 0 0.5em;
box-shadow: 4px 4px 0 #E8E9DB;
}
article#post_box #post_main h4 {
font-size: 14px;
line-height: 1.4;
}
article#post_box #post_main h5 {
font-size: 13px;
line-height: 1.4;
}
article#post_box #post_main ul {
padding: 0;
}
article#post_box #post_main ol {
padding: 0;
}
article#post_box #post_main p {
padding: 0;
margin-bottom: 1em;
}
article#post_box #post_main img {
width: 100%;
height: auto;
margin: 20px 0;
}
article#post_box .tag {
font-size: 12px;
margin-top: 15px;
padding-top: 15px;
}
article#post_box .tag span {
display: inline-block;
margin: 0 0 5px 5px;
}
article#post_box .tag span a {
font-size: 10px;
padding: 4px 5px 4px;
}
}

/*================================prev-next================================*/
#prev-next ul {
list-style: none;
display: flex;
gap: 15px;
margin-top: 50px;
}
#prev-next ul li {
width: calc(825px / 2);
background: #fff;
padding: 15px;
box-sizing: border-box;
}
#prev-next ul li.next > a::before {
font-size: 15px;
display: block;
content: "次の記事";
padding-bottom: 10px;
font-weight: bold;
}
#prev-next ul li.prev > a::before {
font-size: 15px;
display: block;
content: "前の記事";
font-weight: bold;
padding-bottom: 10px;
}
#prev-next ul li a {
color: #333;
width: 100%;
display: block;
text-decoration: none;
transition: 0.5s;
}
#prev-next ul li h2 {
font-weight: normal;
padding: 0 10px;
padding-bottom: 5px;
margin: 0;
margin-bottom: 10px;
font-size: 15px;
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
background: none;
}
#prev-next ul li p {
font-size: 13px;
padding: 0 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 5px;
}
#prev-next ul li .thumb {
width: 100px;
position: relative;
float: left;
overflow: hidden;
}
#prev-next ul li .thumb::before {
content: "";
display: block;
padding-top: 100%;
}
#prev-next ul li img {
object-fit: cover;
width: 100%;
height: 100%;
line-height: 0;
position: absolute;
top: 0;
margin-bottom: 10px;
}
#prev-next ul li a time {
margin: 25px 10px 0 0;
color: #333;
font-weight: bold;
font-size: 12px;
display: block;
text-align: right;
padding-left: 130px;
}
#prev-next .tag_category {
display: inline-block;
font-size: 12px;
padding: 0 10px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 240px;
margin-top: 5px;
letter-spacing: 0;
}
#prev-next .tag_category span {
margin-left: 5px;
display: inline-block;
background: #fff;
border: 1px solid #988D82;
border-radius: 30px;
color: #988D82;
font-size: 10px;
padding: 2px 10px;
text-decoration: none;
}
#prev-next ul li a:hover {
opacity: 0.7;
}
@media (max-width: 767px) {
#prev-next ul {
display: block;
margin-bottom: 30px;
}
#prev-next ul li {
width: 100%;
margin: 8px 0;
}
#prev-next ul li .thumb {
width: 80px;
position: relative;
}
#prev-next ul li h2 {
font-size: 14px;
}
#prev-next ul li p {
font-size: 12px;
padding: 0 10px;
margin: 0 0 5px;
}
#prev-next ul li a time {
margin: 5px 10px 0 0;
padding-left: 90px;
font-size: 10px;
}
#prev-next ul li a .tag_category {
width: 65%;
font-size: 10px;
}
}

/*================================keyword_search================================*/
.keyword_search_navi {
clear: both;
background: #f8f6f3;
padding: 50px 50px 80px;
margin: 0 auto 100px;
border-top: 6px solid #D5CFC6;
border-image: linear-gradient(to right, #d82b1b 0%, #d82b1b 30%, #D5CFC6 30%, #D5CFC6 100%);
border-image-slice: 1 0 0 0;
}
.keyword_search_navi h3 {
font-size: 24px;
font-weight: bold;
text-align: center;
margin: auto;
}
.keyword_search_navi #searchform {
width: 500px;
position: relative;
margin: 50px auto;
}
.keyword_search_navi #searchform input[type=search] {
font-size: 16px;
-webkit-appearance: none;
appearance: none;
outline: none;
width: 500px;
height: 50px;
padding: 12px;
border: 3px solid #e5e5e5;
background: linear-gradient(to bottom, #f7f7f7 0%, #ffffff 100%);
}
.keyword_search_navi #searchform input[type=search]:focus {
width: 500px;
height: 50px;
padding: 12px;
border: 3px solid #e3dace;
background: #fff;
}
.keyword_search_navi #searchform input[type=submit] {
position: absolute;
right: 5px;
top: 0;
bottom: 0;
height: 50px;
width: 50px;
margin: auto;
border-radius: 0;
background: url(../images/btn_search.svg) no-repeat center center;
background-size: 32px;
}
.keyword_search_navi #searchform input[type=submit]:hover {
cursor: pointer;
}
.keyword_search_navi #searchform input::-webkit-input-placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input::-moz-placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input:-ms-input-placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input::-ms-input-placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input::placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input::-ms-input-placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input[type=search]:focus::-webkit-input-placeholder {
color: #e3dace;
}
.keyword_search_navi #searchform input[type=search]:focus::-moz-placeholder {
color: #e3dace;
}
.keyword_search_navi #searchform input[type=search]:focus:-ms-input-placeholder {
color: #e3dace;
}
.keyword_search_navi #searchform input[type=search]:focus::-ms-input-placeholder {
  color: #e3dace;
}
.keyword_search_navi #searchform input[type=search]:focus::placeholder {
color: #e3dace;
}
.keyword_search_navi #searchform input[type=search]:focus::-ms-input-placeholder {
color: #e3dace;
}
.keyword_search_navi ul {
display: flex;
flex-wrap: wrap;
list-style: none;
}
.keyword_search_navi ul li {
width: calc(100% / 4 - 10px);
margin: 5px;
}
.keyword_search_navi ul li a {
display: block;
position: relative;
color: #D5CFC6;
font-size: 13px;
font-weight: bold;
text-align: center;
letter-spacing: 0;
text-decoration: none;
outline-style: none;
border: solid 3px #e3dace;
border-radius: 50px;
background: #fff;
padding: 15px;
transition: 0.3s;
}
.keyword_search_navi ul li a:hover {
border: solid 3px #D5CFC6;
background: #fff;
}
@media (max-width: 767px) {
.keyword_search_navi {
padding: 20px 15px 20px;
margin: 30px 15px 15px;
border-top: 4px solid #D5CFC6;
border-image: linear-gradient(to right, #d82b1b 0%, #d82b1b 30%, #D5CFC6 30%, #D5CFC6 100%);
border-image-slice: 1 0 0 0;
}
.keyword_search_navi h3 {
font-size: 15px;
}
.keyword_search_navi #searchform {
width: 100%;
position: relative;
margin: 20px auto;
}
.keyword_search_navi #searchform input[type=search] {
font-size: 16px;
width: 100%;
height: 45px;
padding: 10px;
}
.keyword_search_navi #searchform input[type=search]:focus {
width: 100%;
height: 45px;
padding: 10px;
}
.keyword_search_navi #searchform input[type=submit] {
position: absolute;
right: 5px;
top: 0;
bottom: 0;
height: 45px;
width: 50px;
background: url(../images/btn_search.svg) no-repeat center center;
background-size: 28px;
}
.keyword_search_navi ul {
width: auto;
margin-left: -5px;
}
.keyword_search_navi ul li {
 width: auto;
margin: 0 0 5px 5px;
}
.keyword_search_navi ul li a {
font-size: 10px;
border: solid 2px #e3dace;
padding: 4px;
}
.keyword_search_navi ul li a:hover {
border: solid 2px #D5CFC6;
}
}

/*-------------- contents_sub_navi01 --------------*/
main .contents_sub_navi01 {
    clear: both;
    background: #fff;
    padding: 50px 0;
    margin: 50px auto 0
}
main .contents_sub_navi01 .inner {
    width: 1200px;
    position: relative;
    text-align: center;
    padding: 0 30px;
    box-sizing: border-box;
    margin: auto;
}
main .contents_sub_navi01 .inner dl {
    background: #fff;
}
main .contents_sub_navi01 .inner dl dt {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto 30px;
}
main .contents_sub_navi01 .inner ul {
    display: flex;
    flex-wrap: wrap;
	gap: 8px;
    list-style: none;
    padding: 0 30px;
}
main .contents_sub_navi01 .inner ul li {
    /* width: calc((100% - 32px) / 5); */
    width: calc((100% - 8px) / 8);
    position: relative;
    line-height: 1.5;
}
main .contents_sub_navi01 .inner ul li a {
    display: block;
    position: relative;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0;
    text-decoration: none;
    outline-style: none;
    border: solid 1px #988D82;
    border-radius: 50px;
    background: #988D82;
    padding: 7px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
main .contents_sub_navi01 .inner ul li a:hover {
    border: solid 1px #1056a6;
}
/*==SP==*/
@media (max-width: 767px) {
    main .contents_sub_navi01 {
        padding: 20px 0;
		margin: 50px 0 0;
    }
    main .contents_sub_navi01 .inner {
        width: 100%;
        padding: 15px;
    }
    main .contents_sub_navi01 .inner dl dt {
        font-size: 14px;
		margin: 0 auto;
        margin-bottom: 10px;
    }

main .contents_sub_navi01 .inner ul {
        display: grid !important;
        /* 各列が内容に引っ張られず最小幅0まで縮むように minmax(0, 1fr) を指定 */
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 0 !important;
        list-style: none !important;
    }

    main .contents_sub_navi01 .inner ul li {
        width: 100% !important;
        min-width: 0 !important; /* Gridの幅計算で文字幅による突き抜けを防止 */
        box-sizing: border-box !important;
    }

    main .contents_sub_navi01 .inner ul li a {
        /* 省略（ellipsis）を効かせるため display: block に戻す（flexだと効きにくくなります） */
        display: block !important;
        width: 100% !important;
        padding: 4px 2px !important;
        font-size: 8px !important; /* 6pxは見えにくいため少し調整（お好みでOK） */
        text-align: center !important;
        box-sizing: border-box !important;
        letter-spacing: 0;
        line-height: 1.2;

        /* テキスト省略をスマホでも有効化 */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }


    /* main .contents_sub_navi01 .inner ul {
		gap: 4px;
        padding: 0;
    }
    main .contents_sub_navi01 .inner ul li {
		width: calc((100% - 4px) / 3);
    }
    main .contents_sub_navi01 .inner ul li a {
        padding: 8px;
        font-size: 12px;
        box-sizing: border-box;
    } */
    main .contents_sub_navi01 .inner ul {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 4px !important;
        padding: 0 !important;
        list-style: none !important;
}

main .contents_sub_navi01 .inner ul li {
    width: 100% !important; /* Gridの場合は100%でOK */
    box-sizing: border-box !important;
}

    main .contents_sub_navi01 .inner ul li a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2px 2px !important;
        font-size: 6px !important;
        box-sizing: border-box !important;
        letter-spacing: 0;
        line-height: 1.2;
    }
}


/*-------------- category_navi --------------*/
body#works .category_navi ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 1200px;
    padding: 20px 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
    gap: 10px;
}
body#works .category_navi ul li {
    width: calc((100% - 50px) / 4);
    margin: 0 !important;

}
body#works .category_navi ul li a {
    width: 100%;
    display: block;
    padding: 15px 28px 16px 10px;
    box-sizing: border-box;
    background: #fff url(../images/arrow_more.svg) no-repeat center right 16px;
    background-size: auto 5px;
    color: #1f2e39;
    outline: 1px solid rgba(152, 141, 130, 0.7);
    outline-offset: -1px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    position: relative;
    filter: drop-shadow(5px 5px 0 rgba(255, 255, 255, 0.02));
}
/*==SP==*/
@media (max-width: 767px) {
body#works .category_navi ul {
    width: 100%;
    justify-content: center;
    padding-top: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}
body#works .category_navi ul li {
    width: auto;
    display: flex;
    align-items: center;
}
body#works .category_navi ul li:not(:last-child)::after {
    content: "｜";
    color: #988D82; 
    font-size: 11px;
    margin: 0 6px;
}
body#works .category_navi ul li a {
    font-size: 12px;
    font-size: 11px;
    padding: 10px 17px 10px 10px;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    outline-offset: unset;
}
}


/*================================調整用スタイル================================*/

/*画像*/
@media only screen and (max-width: 767px) {
.wp-block-image img {
    max-width: 100%!important;
    width: auto!important;
}
}

/*youtube*/
.wp-block-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/*引用*/
blockquote {
    font-style: normal;
}
@media only screen and (max-width: 767px) {
    article#post_box #post_main blockquote {
        padding: 2.5em 1em 1em 1em;
    }
}

/*キャプション*/
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
    font-style: normal;
    margin-top: -15px;
}

/*PDF*/
object.wp-block-file__embed {
    display: block;
}
object.wp-block-file__embed + a[href$=".pdf"] {
    padding-left: 0;
}
@media only screen and (max-width: 1366px) {
    object.wp-block-file__embed {
    display: none;
    }
}

/*gallery*/
article#post_box #post_main .wp-block-gallery .wp-block-image img {
    margin: 0;
}
@media only screen and (max-width: 767px) {
.wp-block-gallery .wp-block-image img {
    margin: 0!important;
}
}

/*table*/
.wp-block-table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.wp-block-table .has-fixed-layout {
    margin: 0;
}
.wp-block-table td {
    padding: .5em;
}
.wp-block-table td:last-child {
    text-align: left;
}

/* p */
article#post_box #post_main p {
    padding: 0;
}

/* 検索窓 */
.widget_search .search-form input[type="search"] {
    width: 100%;
}

/* ウィジェット矢印 */
aside #side h2.widget-title:after {
    content: "";
    position: absolute;
    top: 25px;
    right: 15px;
    width: 12px;
    height: 7px;
    background:
        linear-gradient(45deg, transparent 45%, #333 45%, #333 60%, transparent 60%) left bottom / 50% 100% no-repeat,
        linear-gradient(-45deg, transparent 45%, #333 45%, #333 60%, transparent 60%) right bottom / 50% 100% no-repeat;
    transition: .5s;

    /* ★ 修正：デフォルト（閉じ）の回転角度を 0deg に変更 */
    transform: rotate(0deg); 
}

/* 開いている状態（.openあり）→ 矢印は「上（∧）」 */
aside #side .widget.open h2.widget-title:after {
    /* ★ 修正：開いたときの回転角度を 180deg に変更 */
    transform: rotate(180deg); 
}

/* ギャラリーサムネイル大きさ揃え */
.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wp-block-gallery .wp-block-image {
    width: 100% !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin: 0 !important;
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 767px) {
    .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 施工事例詳細文非表示 */

#works #post-list article a .text_wrap p {
    display: none;
}
#works #post-list article a .text_wrap .title {
    display: block;
}


/* 施工事例：画像拡大調整 */
#works .wp-lightbox-overlay.active .lightbox-image-container {
    width: calc(100vw - 80px) !important;
    height: calc(100vh - 80px) !important;
}

#works .wp-lightbox-overlay.active .lightbox-image-container figure {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

#works .wp-lightbox-overlay.active .lightbox-image-container img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* スマホ */
@media screen and (max-width: 767px) {
    #works .wp-lightbox-overlay.active .lightbox-image-container {
        width: calc(100vw - 32px) !important;
        height: calc(100dvh - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
    }
}

/* 施工事例：ライトボックス画像の過度な拡大を防止 */
#works .wp-lightbox-overlay.active .lightbox-image-container img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 1000px) !important;
    max-height: 100% !important;
    object-fit: contain !important;
}



/* カテゴリ表示 */
.post-category {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin: 10px 0 15px;
}

/* カテゴリボタン */
.post-category a {
    display: inline-block;
    padding: 5px 12px;
    background: #9b9185;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 20px;
    transition: opacity 0.2s;
}

.post-category a:hover {
    opacity: 0.7;
}



/* 新築住宅 (URLに 'custom_house' を含む場合) */
.post-category a[href*="custom_house"] {
  background-color: #8c7355; /* お好みの背景色 */
  color: #ffffff; /* 文字色 */
}

/* リノベーション (例: URLに 'renovation' を含む場合) */
.post-category a[href*="renovation"] {
  background-color: #55778c;
  color: #ffffff;
}

/* リフォーム (例: URLに 'reform' を含む場合) */
.post-category a[href*="reform"] {
  background-color: #5b8c55;
  color: #ffffff;
}

@media only screen and (max-width: 767px) {
    .post-category a {
    padding: 3px 8px 3px;
        font-size: 9px;
}}