@charset "UTF-8";

/* custom properties */
:root {
    --margin-bottom-tab: 40px;
    --margin-bottom-sp: 40px;
    
}

/*リスト要素の初期値をリセット*/
ul,ol{
	list-style: none;
}

@media screen and (max-width: 1080px) {
    #page_headers:has(+ .blog_header),
    .blog_search_page #page_headers{
        height: auto!important;
        padding-bottom: 0;
        margin-bottom: calc(var(--margin-bottom-tab) - 10px);
    }
}
@media screen and (max-width: 640px) {
    #page_headers:has(+ .blog_header),
    .blog_search_page #page_headers{
        margin-bottom: calc(var(--margin-bottom-sp) - 10px);
        /* height: auto!important; */
    }
}

.blog_header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}
@media screen and (max-width: 1080px) {
    .blog_header{
    margin-bottom: var(--margin-bottom-tab);
    flex-direction: column;
    }
}
@media screen and (max-width: 640px) {
    .blog_header{
    margin-bottom: var(--margin-bottom-sp);
    }
}

.blog_header_left{
    width: 636px;
    display: flex;
    align-items: center;
}
@media screen and (max-width: 1080px) {
    .blog_header_left{
        width: 100%;
        margin-bottom: var(--margin-bottom-tab);
    }
}
@media screen and (max-width: 640px) {
    .blog_header_left{
        margin-bottom: var(--margin-bottom-sp);
    }
}

.blog_header_right{
    width: 292px;
    display: flex;
    align-items: center;
}
@media screen and (max-width: 1080px) {
    .blog_header_right{
        width: calc(100% - 1.7em);
        padding-left: 1.7em;
        display: block;
        /* width: calc(100% - 10px);
        padding-left: 10px; */
    }
}
@media (max-width: 640px) {
    .blog_header_right{
        padding-right: 10px;
        padding-left: 10px;
        /* width: calc(100% - 1.7em - 10px); */
        width: calc(100% - 10px - 10px);
    }
}

.blog_header_link-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .blog_header_link-list{
        grid-template-columns: repeat(2, 1fr);
        padding-right: 10px;
        padding-left: 10px;
    }
}

.blog_header_link-item{
    width: 100%;
    /* height: 100%; */
    height: auto;
}

.blog_header_link{
    width: 100%;
    height: 100%;
    display: block;
    box-shadow: 0 4px 4px  rgba(0, 0, 0, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog_header_link:hover{
    opacity: 1;
    transform: translateY(1px);
    box-shadow: 0 2px 2px  rgba(0, 0, 0, 0.16);
}
@media screen and (max-width: 768px) {
    .blog_header_link:hover{
        transform: translateY(0);
        box-shadow: 0 4px 4px  rgba(0, 0, 0, 0.16);
    }
}

.blog_header_link img{
    width: 100%;
    height: 100%;
}

.blog_search_page .page_header{
    display: inline-block;
}

.search-message{
    font-size: 16px;
    margin-top: 30px;
}

@media (max-width: 1080px) {
    .search-message.no-results{
        padding-left: 10px;
    }
}
@media (max-width: 640px) {
    .search-message.no-results{
        padding-left: 0;
    }
}


/* ----------------------------
__検索フォーム
---------------------------- */
/* --- Search Form --- */
.searchbox {
    position: relative;
    margin-bottom: 0.75rem;
  }
  
  .searchbox__input {
    width: 100%;
    height: 36px;
    padding-left: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
  @media (max-width: 1080px) {
    .searchbox__input {
        font-size: 16px;
    }
  }
  
  .searchbox__input:focus {
    outline: none;
    border-color: #333;
  }
  
  .searchbox__submit {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  
  .searchbox__icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
  }
  
  /* --- Buzzword Buttons --- */
  .buzzwords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  @media (max-width: 1080px) {
    .buzzwords {
        gap: 1rem;
    }
  }

  .buzzwords_title{
    font-size: 14px;
    /* font-weight: bold; */
    margin-bottom: .4rem;
  }
  @media (max-width: 1080px) {
    .buzzwords_title{
        font-size: 16px;
        margin-top: 1rem;
        margin-bottom: .8rem;
    }
  }
  
  .chip {
    display: inline-block;
    padding: 0.35em 0.75em;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  @media (max-width: 1080px) {
    .chip {
        font-size: 16px;
    }
  }
  
  .chip:hover,
  .chip:focus {
    background: #333;
    color: #fff;
    border-color: #333;
    outline: none;
  }
  
/* ----------------------------
__ページネーション
---------------------------- */
.pagination{
    padding-left: 1.7em;
}

/* ----------------------------
__検索結果ページでの検索フォーム
---------------------------- */
/* 1081px以上（サイドバー内） */
#side .post-filter{
    margin-bottom: 50px;
}
@media (max-width: 1080px) {
    #side .post-filter{
        display: none;
    }
}

/* 1080px以下 */
.blog-search__module--tab{
    display: none;
}
@media (max-width: 1080px) {
    .blog-search__module--tab{
        display: block;
        margin-top: var(--margin-bottom-tab);
        margin-bottom: var(--margin-bottom-tab);
        padding-left: 10px;
    }
}
@media (max-width: 640px) {
    .blog-search__module--tab{
        margin-top: var(--margin-bottom-sp);
        margin-bottom: var(--margin-bottom-sp);
        padding-right: 10px;
    }
}