body{
    font-family:Noto Sans JP,Yu Gothic Medium,游ゴシック Medium,YuGothic,游ゴシック体,Hiragino Kaku Gothic ProN,ヒラギノ角ゴ ProN W3,Meiryo,メイリオ,sans-serif !important;
}
section{
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 margin:150px auto;
}

article{
    width: 330px;
    border:2px solid #000;
    padding:20px;
    min-height: 170px;
    position: relative;
}
article::before{
    content: "詳しくみる▶︎";
    font-size: 10px;
    color: #949494;
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 75px;
    height: 25px;
    z-index: -1;
}
article h2{
    font-size:20px;
    font-weight: bold;
}
article h3{
    font-size:19px;
    font-weight: 800;
}

article p{
    font-size:14px;
}

.taxonomy-region{
    position: relative;
    left:-15px;
    font-weight: bold;
    pointer-events: none;
    color:#000;
    text-decoration: none;
    overflow: hidden;
    border-radius: 0 20px 20px 0;   
    display: flex;
    justify-content: center;
    font-size:15px;
    width: 80px;
    height: 30px;
    border-top:2px solid #000;
    border-bottom:2px solid #000;
    border-right:2px solid #000;
}

.relative{
    position: relative;
    left: -5px;
}

.taxonomy-region a{
    color:#000;
    padding:0 20px;
}

.term-shimane{
    background:#2BB3FF;
}

.term-tottori{
    background:#FFF570;
}

.gap-0{gap:0;}
.gap-50{gap:50px;}

.fukidashi{
    width: 180px;
    position: absolute;

    top: -50px;
    right: -50px;
}

.buttons{
    align-items: center;
gap: 23px;
display: flex;
}
.buttons .wp-element-button{
width: 150px;
height: 50px;
border-radius: 50px;
border: 3px solid var(--black, #000);
background: var(--white, #FFF);
box-shadow: 0px 5px 0px 0px #000;
color:#000;
text-align: center;
/* Prompt/16px-Bold */
font-family: Prompt;
font-size: 16px;
font-style: normal;
font-weight: 700;
letter-spacing: 0.48px;
position: relative;
top:0px;
transition: 0.2s;
}

.buttons .wp-element-button:hover{
    box-shadow: 0px 0px 0px 0px #000;
    top:5px;
    transition: 0.2s;
}

.subete.active .wp-element-button{
    background: #FF6A7C;
    box-shadow: 0px 0px 0px 0px #000;
     top:5px;
}

.tottori.active .wp-element-button{
     background: #FFF570;
     box-shadow: 0px 0px 0px 0px #000;
      top:5px;
    
}

.shimane.active .wp-element-button{
     background: #2BB3FF;
     box-shadow: 0px 0px 0px 0px #000;
      top:5px;
}

.wp-block-post-featured-image{
    border: 1px solid #000;
}
 .wp-block-post-template{
        grid-template-columns: repeat(3, minmax(0, 1fr))!important;

}
@media screen and (max-width: 1100px) {


 .wp-block-post-template{
        grid-template-columns: repeat(2, minmax(0, 1fr))!important;
}
}

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

 .wp-block-post-template{
        grid-template-columns: repeat(1, minmax(0, 1fr))!important;
        
}
}

@media screen and (max-width: 530px) {
    .buttons  .wp-element-button{
        width: 110px;
        height: 40px;
        padding: 0;
    }
    .buttons{
        gap: 5px;
    }
}
.wp-image-244{
    width: 100px;
    height: auto;
}
.wp-image-305{
    width: 100px;
    height: auto;
}
.wp-image-371{
    width: 100px;
    height: auto;
}
/* ポップアップスタイル */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.fade-in {
    opacity: 1;
}

.popup-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
h3{
    font-size:1rem;
}


.popup-content h3{
    margin:10px auto;
}

.popup-overlay.fade-in .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup-thumbnail {
    text-align: center;
    margin-bottom: 20px;
}

.popup-thumbnail img {
    max-width: 100%;
    height: auto;
    border: 1px solid #000;
}

@media screen and (max-width: 767px) {
    .popup-content {
        max-width: 95%;
        padding: 15px;
    }
}

/* ポスト全体をクリック可能にする */
.wp-block-post {
    position: relative;
    cursor: pointer;
}

/* ポスト内の要素のポインターイベントを有効にする */
.wp-block-post p,
.wp-block-post h3 {
    pointer-events: auto;
}

/* 擬似要素でポスト全体をカバーする透明なリンク */
.wp-block-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

#popup-inner-content .post-none{
    display: block!important;
}

.post-none{
    display: none;
}
