@charset "UTF-8";

#post-list footer {
background:initial;
padding: 0;
margin: initial;
}
#ad_archive .submenu{
display: none;
}

@media only screen and (max-width: 767px) {

}
/*================================title================================*/
.blog .container h1 {
position: relative;
width: 100%;
margin-bottom: 50px;
color: #333;
font-size: 2.2rem;
font-weight: bold;
line-height: 1.3;
padding: 20px 25px 20px 90px;
display: block;
border-bottom: 4px solid #C65422;
}
.blog .container h1::after {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 6px;
border-radius: 5px;
}
.blog .container h1 span {
color: #C65422;
display: block;
letter-spacing: 1px;
font-size: 1.2rem;
padding: 0;
}

#categry_title {
background: #fff url(../images/blog/icon_category.svg) no-repeat left 20px center;
background-size: 50px;
}
#archive_title {
background: #fff url(../images/blog/icon_archive.svg) no-repeat left 20px center;
background-size: 50px;
}
#search_title {
background: #fff url(../images/blog/icon_search.svg) no-repeat left 20px center;
background-size: 50px;
}
#tag_title {
background: #fff url(../images/blog/icon_tag.svg) no-repeat left 20px center;
background-size: 50px;
}

@media only screen and (max-width: 767px) {
.blog .container > .inner{
padding: 30px 15px;
}
.blog .container h1 {
margin-bottom: 20px;
font-size: 1.5rem;
padding: 15px 25px 15px 48px;
}
.blog .container h1::after {
content: "";
height: 4px;
border-radius: 4px;
}
.blog .container h1 span {
font-size: 1rem;
}
#categry_title {
background: #fff url(../images/blog/icon_archive.svg) no-repeat left center;
background-size: 35px;
}
#archive_title {
background: #fff url(../images/blog/icon_archive.svg) no-repeat left center;
background-size: 35px;
}
#tag_title {
background: #fff url(../images/blog/icon_tag.svg) no-repeat left center;
background-size: 35px;
}
#search_title {
background: #fff url(../images/blog/icon_search.svg) no-repeat left center;
background-size: 35px;
}
#h_title {
background: #fff url(../images/blog/icon_archive.svg) no-repeat left center;
background-size: 35px;
}
}
/*-------------- news_blog ---------------*/
.blog .container > .inner.news_blog {
display: flex;
justify-content: space-between;
margin: auto;
padding: 80px 0 120px;
}
.blog .container > .inner{
width: 1200px;
display: block;
margin: auto;
padding: 100px 0 240px;
}
.blog .container > .inner.item_blog main {
width: 1200px;
margin: 50px auto;
}
.blog .container > .inner.news_blog  main {
width: 850px;
}
.blog .container > .inner aside {
width: 290px;
}
.blog .container > .inner aside h2 {
display: block;
font-weight: bold;
font-size: 1.6rem;
line-height: 1.3;
padding: 15px 20px 15px 60px;
box-sizing: border-box;
background: #fff;
border-bottom: 3px solid #C65422;
}
.blog .container > .inner .accordion nav{
background: #fff;
padding: 0 0 15px;
}
.blog .container > .inner aside h2.recent_li {
background-image: url(../images/blog/icon_post.svg);
background-size: 40px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.blog .container > .inner aside h2.category_li {
background-image: url(../images/blog/icon_category.svg);
background-size: 40px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.blog .container > .inner aside h2.archive_li {
background-image: url(../images/blog/icon_archive.svg);
background-size: 40px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.blog .container > .inner aside h2 span {
letter-spacing: 1px;
color: #C65422;
display: block;
font-size: 1.1rem;
font-weight: bold;
}
.blog .container > .inner aside .submenu {
display: block;
border-bottom: 1px dotted #ddd;
}
.blog .container > .inner aside .submenu li {
list-style: none;
border-top: 1px dotted #ddd;
}
.blog .container > .inner aside .submenu li a {
color: #333;
margin: auto;
display: block;
font-size: 1.4rem;
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/icon-arrow01.svg) no-repeat right center;
background-size: 6px auto;
text-decoration: none;
}
.blog .container > .inner aside .submenu li a:hover {
background: #fafafa url(../images/icon/icon-arrow01.svg) no-repeat right center;
background-size: 6px;
}
.blog .container > .inner aside .submenu li:first-child {
border-top: none;
}

@media only screen and (max-width: 767px) {
.blog .container > .inner.news_blog {
width: 100%;
display: block;
margin: auto;
padding: 30px 20px 50px;
}
.blog .container > .inner {
width: 100%;
display: block;
padding: 60px 20px 0;
}
.blog .container > .inner.item_blog main {
width: 100%;
margin: 10px auto 30px;
}
.blog .container > .inner.news_blog main {
width: 100%;
margin: 0 auto 30px;
}
.blog .container > .inner main {
width: 100%;
margin: auto;
}
.blog .container > .inner aside {
width: 100%;
margin: 30px 0 0;
}
.blog .container > .inner aside h2 {
font-size: 1.5rem;
padding: 10px 20px 10px 55px;
}
.blog .container > .inner aside h2.recent_li {
background-image: url(../images/blog/icon_post.svg);
background-size: 35px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.blog .container > .inner aside h2.category_li {
background-image: url(../images/blog/icon_category.svg);
background-size: 35px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.blog .container > .inner aside h2.archive_li {
background-image: url(../images/blog/icon_archive.svg);
background-size: 35px, auto;
background-repeat: no-repeat, repeat;
background-position: left 10px center, center;
}
.blog .container > .inner aside h2 span {
font-size: 1rem;
}
.blog .container > .inner aside .submenu li a {
font-size: 1.4rem;
padding: 10px 40px 10px 10px;
}
}

/*================================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 {
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 #ddd;
background: #fff;
}
#searchform input[type=submit] {
font-size: 14px;
position: absolute;
right: 5px;
top: 0;
height: 50px;
width: 50px;
border: none;
background: url(../images/blog/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: #ddd;
}
#searchform input[type=search]:focus::-moz-placeholder {
color: #ddd;
}
#searchform input[type=search]:focus:-ms-input-placeholder {
color: #ddd;
}
#searchform input[type=search]:focus::-ms-input-placeholder {
color: #ddd;
}
#searchform input[type=search]:focus::placeholder {
color: #ddd;
}
#searchsubmit {
padding: 0;
margin: 0;
}
@media (max-width: 767px) {
#searchform {
padding: 0 5px;
}
#searchform input[type=search] {
width: 100%;
}
#searchform input[type=search]:focus {
width: 100%;
height: 50px;
}
 #searchform input[type=submit] {
position: absolute;
right: 10px;
top: 0;
}
}

/*================================pagenation================================*/
.pager {
padding: 50px 0 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: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
font-size: 1.5rem;
background: #fff;
color: #C65422;
text-decoration: none;
transition: 0.6s;
box-sizing: border-box;
line-height: 1;
border: 1px solid #C65422;
}
.pager ul li.current span {
background: #C65422;
color: #fff;
font-weight: bold;
}
.pager ul li.prev a, .pager ul li.next a {
width: 80px;
font-size: 1.5rem;
background: #fff;
border: 1px solid #C65422;
text-decoration: none;
}
.pager ul li a:hover {
background: #C65422;
color: #fff;
transition: 0.1s;
}

@media (max-width: 767px) {
.pager {
padding: 15px 0 0;
}
.pager ul li {
margin: 2px;
}
.pager ul li span,
.pager ul li a {
width: 30px;
height: 30px;
font-size: 12px;
line-height: 1;
}
.pager ul li.prev a, .pager ul li.next a {
width: 60px;
font-size: 12px;
}
.pager ul li.prev a:hover, .pager ul li.next a:hover {
font-size: 12px;
}
}
/*================================post-list================================*/
#post-list {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
#post-list.col3 article {
width: calc((100% - 40px) / 3);
}
#post-list article {
width: calc((100% - 20px) / 2);
}
#post-list article a {
width: 100%;
height: 100%;
color:var(--c-primary);
display: block;
text-decoration: none;
background:#fff;
border: 1px solid #C65422;
overflow: hidden;
transition: 0.3s;
padding: 0;
outline: none;
}
#post-list article a:hover {
opacity: 0.7;
}
#post-list article a .image_wrap {
position: relative;
padding-top: 75%;
background: #eee;
}
#post-list article a .image_wrap img {
object-fit: cover;
width: 100%;
height: 100%;
line-height: 0;
position: absolute;
top: 0;
transition: 0.3s;
}
#post-list article a .text_wrap {
padding: 15px;
}
#post-list article a .text_wrap .title {
font-size: 1.6rem;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
}
#post-list article a .text_wrap p {
font-size: 1.4rem;
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;
}
#post-list article a .text_wrap .tag object a {
display: block;
border: none;
color: #C65422;
font-size: 1.1rem;
text-align: center;
background: #fff;
border: 1px solid #C65422;
padding: 4px 10px 4px;
text-decoration: none;
transition: 0.3s;
}
#post-list article a time {
color: #777;
font-size: 1.3rem;
display: block;
text-align: right;
padding: 0 15px 15px;
}
@media only screen and (max-width: 767px) {
#post-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
#post-list.col3 article {
width: 100%;
}
#post-list article {
width: 100%;
margin: 0 auto 10px;
}
#post-list article a .image_wrap {
position: relative;
padding-top: 75%;
background: #dbe6e9;
}
#post-list article a .text_wrap {
padding: 15px 15px 5px;
}
#post-list article a .text_wrap .title {
font-size: 1.4rem;
}
#post-list article a .text_wrap p {
font-size: 1.3rem;
margin: 0 0 10px;
}
#post-list article a .text_wrap .tag object a {
padding: 5px 10px 5px;
}
}

/*================================post_box================================*/
article#post_box {
background: #fff;
padding-bottom: 50px;
}
article#post_box time {
color: #777;
display: block;
text-align: right;
font-size: 1.6rem;
padding: 0 0 20px;
margin-bottom: 20px;
border-bottom: 1px dotted #777;
}
article#post_box h1 {
color: #222;
padding: 20px 0;
margin-bottom: 30px;
}
article#post_box #post_main h2 {
display: block;
color: #333;
font-size: 2.2rem;
font-weight: 700;
line-height: 1.3;
text-align: left;
margin:50px 0 20px;
padding: 16px 20px;
border-left: 5px solid #C65422;
}
article#post_box #post_main h3 {
position: relative;
font-size: 2rem;
font-weight: 700;
line-height: 1.3;
margin: 50px 0 24px;
}
article#post_box #post_main h3::after{
position: relative;
display: block;
content: " ";
height: 1px;
border-left: 30px solid #C65422 !important;
background-color: #ccc !important;
bottom: -12px;
}
article#post_box #post_main h4 {
color: #333;
font-size: 1.8rem;
font-weight: bold;
border-bottom: 1px dotted #ddd;
padding: 0 0 10px;
margin: 1.5em 0 0.5em;
}
article#post_box #post_main h5 {
color: #333;
font-size: 1.6rem;
font-weight: bold;
margin: 1.5em 0 0.2em;
}
article#post_box #post_main p {
padding: 0;
margin-bottom: 1.5em;
}
article#post_box #post_main img:not(.wp-block-gallery .wp-block-image img) {
width: 100%;
height: auto;
margin: 30px 0;
}
article#post_box #post_main ul {
padding: 0 20px;
list-style: disc;
margin: 2em 0 2em 0;
}
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: 2em 0 2em 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 p{
padding: 0;
}
article#post_box #post_main blockquote::before {
content: "“";
color: #ccc;
font-size: 5rem;
line-height: 0;
position: absolute;
top: 0.5em;
left: 0.1em;
}
article#post_box #post_main blockquote::after {
content: "”";
color: #ccc;
font-size: 5rem;
line-height: 0;
position: absolute;
bottom: 0.2em;
right: 0.4em;
}
article#post_box .tag {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-top: 20px;
padding-top: 20px;
border-top: 1px dotted #ccc;
font-size: 1.2rem;
}
article#post_box .tag span {
display: inline-block;
margin: 0 0 0 5px;
}
article#post_box .tag span a {
display: block;
border: none;
color: #C65422;
font-size: 1.2rem;
text-align: center;
background: #fff;
border: 1px solid #C65422;
padding: 4px 10px 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;
}
article#post_box time {
font-size: 1.4rem;
padding: 10px 0;
}
article#post_box h1 {
font-size: 1.6rem;
padding:0 0 12px;
margin: 0 0 10px;
}
article#post_box #post_main h2 {
font-size: 1.6rem;
line-height: 1.3;
background-size: 20px auto;
margin: 2em 0 1em;
padding: 8px 15px;
border-left: 3px solid #C65422;
}
article#post_box #post_main h3 {
font-size: 1.6rem;
line-height: 1.4;
margin: 2em 0 20px;
}
article#post_box #post_main h3::after{
position: absolute;
left: 0;
bottom: -10px;
content: "";
width: 100%;
}
article#post_box #post_main h4 {
font-size: 1.4rem;
padding: 0 0 6px;
line-height: 1.4;
}
article#post_box #post_main h5 {
font-size: 1.4rem;
line-height: 1.4;
}
article#post_box #post_main ul {
font-size: 1.6rem;
}
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: 1.2rem;
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: 1.1rem;
padding: 4px 5px 4px;
}
}

/*================================prev-next================================*/
#prev-next ul {
list-style: none;
display: flex;
gap: 15px;
margin-top: 50px;
}
#prev-next ul li {
position: relative;
width: calc(100% / 2);
background: #fff;
padding: 20px;
border: 2px solid #C65422;
}
#prev-next ul li.next > a::before {
color: #C65422;
width: 100%;
font-size: 1.6rem;
display: block;
content: "次の記事";
padding-bottom: 16px;
font-weight: bold;
}
#prev-next ul li.prev > a::before {
color: #C65422;
width: 100%;
font-size: 1.6rem;
display: block;
content: "前の記事";
font-weight: bold;
padding-bottom: 16px;
}
#prev-next ul li a {
display: block;
color: #333;
width: 100%;
text-decoration: none;
padding-bottom: 12px;
transition: 0.5s;
}
#prev-next ul li a .flexbox{
display: flex;
gap: 10px 15px;
}
#prev-next ul li .wrap {
margin-bottom: 10px;
}
#prev-next ul li h2 {
font-weight: normal;
font-size: 15px;
font-weight: bold;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
line-clamp: 1;
background: none;
margin-bottom: 5px;
}
#prev-next ul li p {
font-size: 1.3rem;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
line-clamp: 3;
margin-bottom: 10px;
}
#prev-next ul li .thumb {
width: 100px;
height: 100px;
position: relative;
overflow: hidden;
flex-shrink: 0;
}
#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;
}
#prev-next ul li a time {
position: absolute;
bottom: 15px;
right: 15px;
width: 100%;
color: #333;
font-weight: bold;
font-size: 1.2rem;
display: block;
text-align: right;
}
#prev-next .tag_category {
display: inline-block;
font-size: 1.2rem;
line-height: 1;
width: 260px;
}
#prev-next .tag_category span {
margin: 2px 0 2px 4px;
display: inline-block;
border: 1px solid #A9955B;
border-radius: 30px;
color: #A9955B;
font-size: 1.2rem;
line-height: 1;
padding: 4px 10px;
text-decoration: none;
}
#prev-next ul li a:hover {
opacity: 0.7;
}
@media (max-width: 767px) {
#prev-next ul {
display: block;
margin-top: 30px;
margin-bottom: 30px;
}
#prev-next ul li {
width: 100%;
margin: 8px 0;
padding: 10px;
}
#prev-next ul li.next > a::before {
font-size: 1.4rem;
padding-bottom: 10px;
}
#prev-next ul li.prev > a::before {
font-size: 1.4rem;
padding-bottom: 10px;
}
#prev-next ul li a {
padding-bottom: 20px;
}
#prev-next ul li .wrap {
margin-bottom: 5px;
}
#prev-next ul li .thumb {
width: 80px;
height: 80px;
position: relative;
}
#prev-next ul li h2 {
width: 100%;
font-size: 1.4rem;
}
#prev-next ul li p {
width: 100%;
font-size: 1.3rem;
margin: 5px 0 5px;
}
#prev-next ul li a time {
position: absolute;
bottom: 15px;
right: 15px;
font-size: 1.2rem;
}
#prev-next ul li a .tag_category {
width: 100%;
font-size: 1.1rem;
}
}

/*================================item_blog================================*/
.item_blog{
width: 1200px;
margin: auto;
padding: 150px 0;
}
.item_blog h1 {
width: 100%;
margin-bottom: 50px;
color: #A9955B;
font-size: 2.4rem;
font-weight: bold;
line-height: 1.3;
padding: 25px 25px 25px 80px;
border-bottom: 6px solid #a9955b;
}
.item_blog h1 span {
color: #a9955b;
display: block;
letter-spacing: 1px;
font-size: 1.2rem;
padding: 0;
}
@media (max-width: 767px) {
.item_blog{
width: 100%;
padding: 50px 20px;
}
.item_blog h1 {
margin-bottom: 30px;
font-size: 1.5rem;
padding: 15px 25px 15px 65px;
border-bottom: 4px solid #a9955b;
}
.item_blog h1 span {
font-size: 1rem;
}
}
/*================================keyword_search================================*/
.keyword_search_navi {
width: 100%;
min-width: 1200px;
max-width: 1920px;
background:#fefce4 url(../images/bg-keyword.svg) no-repeat center bottom;
background-size:100% auto ;
border-radius: 30px;
padding:60px 50px 10%;
margin: 50px auto 0;
border: 6px solid #50C878;
filter: drop-shadow(5px 5px 0 #E4FFED);
transform: translateZ(0);
}
.keyword_search_navi h3 {
background: linear-gradient(97deg, #A6CF6D -3.73%, #53C877 21.53%, #86CC71 67.87%, #A4CE6D 95.84%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size:3rem!important;
font-weight: bold;
text-align: center;
margin: auto!important;
}
.keyword_search_navi #searchform {
width: 500px;
position: relative;
margin: 50px auto;
}
.keyword_search_navi #searchform input[type=search] {
font-size: 1.6rem;
-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/blog/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::placeholder {
color: #ddd;
}
.keyword_search_navi #searchform input[type=search]:focus::placeholder {
color: #e3dace;
}
.keyword_search_navi ul {
width: 100%;
display: flex;
flex-wrap: wrap;
gap: 10px;
list-style: none;
}
.keyword_search_navi ul li {
width: calc((100% - 40px) / 5);
}
.keyword_search_navi ul li a {
display: block;
position: relative;
color: #333;
font-size: 1.3rem;
font-weight: bold;
text-align: center;
letter-spacing: 0;
text-decoration: none;
outline-style: none;
border-radius: 50px;
background: #fff;
padding: 10px;
transition: 0.3s;
border: 3px solid #a4e595;
}
.keyword_search_navi ul li a:hover {
opacity: 0.7;
}
@media (max-width: 767px) {
.keyword_search_navi {
min-width: 100%;
max-width: 100%;
border-radius: 20px;
padding: 20px 20px 12%;
border: 5px solid #50C878;
filter: drop-shadow(4px 4px 0 #E4FFED);
}
.keyword_search_navi h3 {
font-size: 1.6rem !important;
}
.keyword_search_navi #searchform {
width: 100%;
position: relative;
margin: 20px auto;
}
.keyword_search_navi #searchform input[type=search] {
font-size: 1.6rem;
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/blog/btn_search.svg) no-repeat center center;
background-size: 28px;
}
.keyword_search_navi ul {
width: 100%;
gap: 6px;
}
.keyword_search_navi ul li {
width: calc((100% - 6px) / 2);
}
.keyword_search_navi ul li a {
font-size: 1.1rem;
padding: 6px;
}
}

/*-------------- image_wrap ---------------*/
article#post_box #post_main .image_wrap {
  margin: 10px auto;
}

article#post_box #post_main .image_wrap ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2em 0;
  padding: 0;
  list-style: none;
  gap: 20px;
}

/* 各アイテム全体（li） */
article#post_box #post_main .image_wrap ul li {
  flex: 1 1 calc((100% - 40px) / 3); /* PC時は3列 */
  text-align: left;
}

/* figure部分：画像だけの枠を形成 */
article#post_box #post_main .image_wrap ul li figure {
  aspect-ratio: 5 / 4; /* 画像枠の比率を固定 */
  background-color: #f5f5f5; /* 背景は画像部分のみに適用 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0; /* figureのデフォルト余白を消す */
}

/* 画像設定（トリミングなし・比率維持） */
article#post_box #post_main .image_wrap ul li figure img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* キャプション：画像の下に配置（背景なし） */
article#post_box #post_main .image_wrap .cap {
  display: block;
  font-size: 1.5rem;
  margin-top: 8px;
  line-height: 1.5;
  background: none; /* 念のため明示的に背景解除 */
}

/* 2列ギャラリー用 */
article#post_box #post_main .image_wrap ul.col2 li {
  flex: 1 1 calc((100% - 20px) / 2);
}
@media (max-width: 767px) {
article#post_box #post_main .image_wrap ul {
flex-direction: column;
gap: 10px;
}
article#post_box #post_main .image_wrap ul li {
width: 100%;
}
article#post_box #post_main .image_wrap ul li figure img {
width: 100%;
object-fit: contain;
}
article#post_box #post_main .image_wrap .cap {
font-size: 1.4rem;
margin-top: 4px;
}
}
/*-------------- 画像ギャラリー（.wp-block-gallery） ---------------*/
/*
.wp-block-gallery {
  display: grid;
  gap: 20px;
}
.wp-block-gallery.columns-1 {
  grid-template-columns: repeat(1, 1fr);
}
.wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.wp-block-gallery.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
.wp-block-gallery.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}
*/
/* 画像ブロック全体（1枚分） */
.wp-block-gallery .wp-block-image {
  aspect-ratio: 5 / 4;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin: 0;
  position: static!important;
/*  width: 100% !important;*/
}
/* 画像 */
.wp-block-gallery .wp-block-image img {
  width: auto;
  height: 100%!important;
  object-fit: contain!important;
  flex-shrink: 0!important;
  display: block;
  flex: 1 1 auto!important;
}
/*キャプション（figcaption）*/
.wp-block-gallery .wp-block-image figcaption {
　display: block !important; 
  height: auto !important;
  min-height: 0; 
  background: #fff!important;
  font-size: 1.5rem!important;
  margin-top: 8px;
  line-height: 1.5;
  color: #333!important;
  font-style: normal;
  text-shadow: none!important;
  position: static!important;
  text-align: left!important;
  width: 100%;
  padding: 8px 0 0!important;
  overflow: visible!important;
  flex: 0 0 auto!important; /* 高さを内容に合わせる */
}
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{
  content: none !important; /* これで疑似要素自体を消す */
  height: auto;
}
.wp-block-image figcaption {
  font-style: normal!important;
  font-size: 1.5rem!important;
  margin: 8px 0 0;
  color: #333!important;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  article#post_box #post_main .wp-block-gallery .wp-block-image{
    width: 100%!important;
  }
  article#post_box #post_main .wp-block-gallery .wp-block-image img,
  article#post_box #post_main .wp-block-image img{
	margin: 0;
  }
	article#post_box #post_main .wp-block-gallery .wp-block-image figcaption{
	margin: 0;
	}
}