/*
Theme Name:   Corporate Standard Child Theme
Theme URI:    https://barbwire.co.jp/
Description:  Corporate Standard Child Theme
Author:       Barbwire Co., Ltd.
Author URI:   https://barbwire.co.jp/
Template:     corporate-standard-2
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/


.entry-meta {
    display: block !important;
    font-size: .8rem;
}

.entry-meta .cat-links a {
    text-decoration: none;
    background: var(--b-theme-color-1);
    color: #fff;
    padding: 5px 10px;
    border-radius: 100px;
}

.entry-meta .cat-links {
    flex-wrap: wrap;
    gap: 3px;
}

.entry-meta .term-separator {
    display: none;
}

/************************
 * ヘッダ
 */
.site-description {
    background: #20376b;
}
.header-top {
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.header-top > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-title {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    margin: 0;
}
.site-title img {
    display: block;
}


.site-title .sub-title {
    font-size: 1rem;
    font-weight: normal
}

.header-contents--fixed .header-top {
    display: none;
}

.header-official p {
    display: flex;
    align-items: center;
}

.header-official {
    width: 240px;
    font-size: 1rem;
}

.header-official p {
    margin: 0;
    line-height: 1em;
    gap: .25rem;
    width: 100%;
}

.header-official a {
    text-decoration: none;
    color: #fff;
}

#site-footer .header-official {
    border: 1px solid #fff;
    padding: 10px 20px;
    width: 280px;
    margin: 2rem auto 4rem;
}

@media (min-width: 768px) {
    .header-top {
        position: relative;
    }
    .header-top .header-official {
        width: clamp(180px, 24.3vw, 280px );
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        font-size: clamp(12px, 1.33vw, 1rem);
        border: 1px solid #fff;
        padding: 10px 20px;
    }

}

@media (max-width: 767px) {
    .site-description {
        position: absolute;
    }
    .header-contents-upper .site-title {
        max-width: unset;
        justify-content: center;
    }
    .header-contents-upper .site-title a img {
        width: auto;
    }
    .header-official.sp {
        color: var(--color-font-base);
        font-weight: bold;
        text-align: center;
        width: 100%;
        margin-top: 2em;
    }

    .header-official.sp p {
        justify-content: center;
    }
}

/************************
 * フッタ
 */
#site-footer {
    background: url(assets/img/footer-bg.jpg) no-repeat center / cover;
}
#site-footer,
#site-footer a {
    color: #fff;
}
#site-footer .free-call {
    display: flex;
    gap: 8px;

}
#site-footer .free-call > * {
    margin: 0 !important;
}
#site-footer .free-call img {
    height: 1.3em;
    width: auto;
    background: #fff;
    border: 1px solid #fff;
}

#site-footer .free-call a {
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: 2px;
    line-height: 1;
}

#site-footer .free-call-note {
    font-size: 0.6875rem;
    margin: 0;
}

#footer-menu a {
    font-size: .9rem;
}



/************************
 * ページネーション
 */
.archive .navigation {
    display: flex;
    justify-content: center;
    column-gap: 10px;
    margin-top: 3rem;
}
.archive .navigation span,
.archive .navigation a {
    display: grid;
    place-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    font-weight: bold;
    font-size: 1.5rem;
}
.archive .navigation span {
    background: var(--b-theme-color-1);
    color: #fff;
}
.archive .navigation a {
    color: var(--b-theme-color-1);
    text-decoration: none;
}

@media screen and (max-width: 640px) {
    .archive .navigation span,
    .archive .navigation a {
        font-size: 1.2rem;

    }
}


/************************
 * ブログ一覧
 */
.archive .entries > div:not(.navigation) {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;

}

.archive article {
    display: grid;
    grid-template-columns: 100%;
    padding: 0;
    grid-template-rows: subgrid;
    grid-row: span 5;
    gap: 0;
    border-bottom: none;
}

.archive article > :not(.entry-header) {
    padding: 0 .5rem;
}

.archive article .entry-header {
    width: 100%;
}

.archive article .entry-content > * {
    margin-top: 0;
}

.archive .entry-title a,
.archive .entry-title .view_detail a{
    text-decoration: none;
}

.archive .excerpt {
    margin-top: 1rem;
}

.archive .excerpt,
.archive .view_detail {
    font-size: .9rem;
    color: #555;
}

.archive .entries h3 {
    margin: .5rem 0;
    line-height: .9;
}
.archive .entries h3 a {
    color: var(--b-theme-color-1);
}

.archive  .entries .entry-meta .meta-separator {
    display: none;
}


.archive  .entries .view_detail {
    margin-top: .5rem;
    color: var(--b-theme-color-1);

}
.archive .entries .view_detail::before {
    font-size: .9rem;
}
.archive  .entries .view_detail a {
    text-decoration: none;
    color: var(--b-theme-color-1);
}


@media screen and (max-width: 1000px) {
    .archive .entries > div:not(.navigation) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .archive article {
        grid-template-rows: unset;
    }
    .archive .entries > div:not(.navigation) {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 5rem;
    }
}


/*ブログページ関連*/

.single-post .entry-header {
    margin-top: 3rem;
}
.single-post .entry-meta .meta-separator {
    display: none;
}

.single-post .entry-content > .is-layout-flow {
    margin-top: 2rem;
}

.single-post .entry-content h3 {
    margin-top: 3.75rem;
}

.single-post .entry-content > .is-layout-flow > :first-child:is(h3) {
    margin-top: 0;
}

.single-post .entry-content h4 {
    margin-top: 2.25rem;
}

.single-post .entry-content h3::before {
    content: "◆";
    margin-right: .2rem;
}



.single-post .entry-content table {
    table-layout: auto !important;
}
.single-post .entry-content table td {
    border: none;
    padding: 0 0 .5rem;
    vertical-align: top;
}
.single-post .entry-content table td:first-child {
    white-space: nowrap;
    padding-right: .5rem;
}
.single-post .entry-content ul {
    padding-left: .75rem;
}
.single-post .entry-content ul li {
    margin-left: .5rem;
    margin-bottom: .25rem;
}
.single-post .entry-content ul li::marker {
    content: "・ ";
}
.single-post.entry-content ul.check-mark {
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}
.single-post .entry-content ul.check-mark li::marker {
    content: "✔  ";
}

.post-navigation {
    margin-top: 4rem;
    max-width: var(--wp--style--global--content-size);
    padding-left: var(--container-margin);
    padding-right: var(--container-margin);
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}
.nav-links a {
    color: #566573;
    text-decoration: none;
}
.nav-links > div {
    margin: 0;
    border-bottom: 1px dotted #999;
}

.nav-links .nav-previous {
    padding: 10px 15px;
    text-align: left;
}

.nav-links .nav-next {
    padding: 10px 15px;
    text-align: right;
}

.nav-links .nav-previous a:before {
    content: '<< ';
}

.nav-links .nav-next a:after {
    content: ' >>';
}

@media only screen and (min-width:641px) {
    .nav-links {
        margin-bottom: 40px;
    }

}

@media only screen and (max-width:640px) {
    .nav-links {
        margin: 10px 0 40px 0;
    }

}


ol.brackets {
    list-style: none;
    counter-reset: my-counter;
}

ol.brackets li {
    counter-increment: my-counter;
}

ol.brackets li::before {
    content: "(" counter(my-counter) ") "; /* 例: 1) 2) 3) */
}