/*
Template: lightning
Theme Name: MillenVPNニュース2025
*/

:root{
    --blue: var(--vk-color-primary);/* Lightningのカラー設定から取得 */
    --orange: var(--wp--preset--color--vk-color-custom-1);
    --cream: var(--wp--preset--color--vk-color-custom-2);
    --vk-color-header-bg: var(--vk-color-primary);
}
body{
    font-size: 16px;
    font-family:
        /* 1. 欧文: LatoはWebフォント */
            "Lato",
                /* 2. 日本語: Win標準搭載のNotoを最優先、次にMacのヒラギノ */
            "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                /* 3. 簡体字 (中国) */
            "Noto Sans SC", "Microsoft YaHei",
                /* 4. 繁体字 (台湾/香港) */
            "Noto Sans TC", "Microsoft JhengHei",
                /* 5. 韓国語 */
            "Noto Sans KR", "Malgun Gothic",
                /* 6. 代替フォント */
            sans-serif;
}
.site-header{
    background: var(--blue);
}
@media (max-width: 991.98px) {
    .site-header-logo img {
        max-height: min(50px, 6dvw);
    }
}
.page-header{
    background: #e5e5e5;
    min-height: inherit;
}
.page-header-inner{
    margin-top: 0;
    margin-bottom: 0;
}
.page-header-title{
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.global-nav-list>li>a{
    background: var(--orange);
    color: #fff;
    padding: .5rem 1rem;
    position: relative;
    margin-left: .5em;
    border-radius: 1em 0;
    transition: all .2s;
}
.global-nav-list>li>a:hover{
    border-radius: 0;
    box-shadow: 1px 1px 2px rgba(255,255,255,1);
    transition: all .2s;
}
.global-nav-list>li>a:hover:after{
    top: 0;
    left: 0;
}
.device-pc .global-nav-list>li>a{
    overflow: unset;
}
.header_scrolled .site-header{
    background: transparent;
    box-shadow: none;
}
.header_scrolled .site-header .global-nav{
    margin-right: 0;
}
.header_scrolled .global-nav-list{
    margin-right: 0;
    justify-content: flex-end;
}
.header_scrolled .global-nav-list>li>a{
    padding: .4em 1em;
    border-radius: 0 0 1rem;
    box-shadow: 1px 1px 2px rgba(0,0,0,.6);
}
.header_scrolled .global-nav-list .global-nav-name:before{
    content: '';
    display: inline-block;
    background: currentColor;
    width: 1em;
    height: .8em;
    clip-path: polygon(0 0, 50% 50%, 0 100%);
}
.header_scrolled .global-nav-list>li>a:after{
    display: none;
}

.loop-latestPosts{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    container-type: inline-size;
    margin-bottom: 4rem;
}
.loop-item-latestPost{
    flex: 1 0 calc(33.33% - 20px);
    display: grid;
    gap:0;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto 1fr 8em;
    padding: 0 1rem;
    border-radius: .5rem;
    box-shadow: 1px 1px 4px rgba(0,0,0,.4);
    overflow: hidden;
}
/* サイドバー */
.widget_block_bordered{
    border: solid 2px #e5e5e5;
    border-radius: 1rem;
    padding: 1rem;
}
.sub-section .wp-block-heading{
    line-height: 1.2;
}
.sub-section .wp-block-heading:before{
    content: '';
    display: inline-block;
    margin-right: .4em;
    height: 1.2em;
    width: 8px;
    border-radius: 4px;
    background: var(--orange);
    vertical-align: text-bottom;
}
.sub-section .wp-block-latest-posts__post-title{
    color: var(--blue);
}
/* END サイドバー */

/* TOPページの最新投稿 */
.home-h2{
    line-height: 1.2;
    padding: .4em;
    background: var(--cream);
}
.home-h2:before{
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--orange);
    margin-right: .5em;
    border-radius: 4px;
    vertical-align: text-bottom;
}
.latestPost-new{
    display: block;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 1em;
    padding-left: 1rem;
    background: var(--blue);
    line-height: 1.4;
    height: 1.4em;
    color: #fff;
    grid-column: 1/-1;
}
.latestPost-date{
    color: #666;
    font-size: .8em;
    display: inline-block;
    padding: 0 1px;
}
.latestPost-categories{
    text-align: right;
}
.latestPost-category{
    display: inline-block;
    border: solid 1px #666;
    background: #efefef;
    border-radius: 2px;
    font-size: .8em;
    padding: 0 .5em;
    margin-left: .5em;
    white-space: nowrap;
}
.latestPost-title{
    font-size: 1.6em;
    font-weight: bold;
    grid-column: 1/-1;
    margin: .25em 0 .5em;
    color: #000;
}
.latestPost-excerpt{
    grid-column: 1/-1;
    overflow: hidden;
    margin-bottom: -2em;
}
@container (max-width: 700px) {
    .loop-item-latestPost{
        flex-basis: 60%;
    }
}
.latestPost-more{
    grid-column: 1/-1;
    background: rgba(255,255,255,.9);
    margin: 0 -1rem 0;
    line-height: 2;
    color: var(--orange);
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}
/* END TOPページの最新投稿 */

/* 投稿ループ */
.vk_post.media{
    border-style: solid;
    border-width: 1px 1px 1px 8px;
    border-color: #e5e5e5 #e5e5e5 #e5e5e5 var(--blue);
    border-radius: .5rem;
    padding: 1rem !important;
    margin-bottom: 15px;
}
.vk_post .vk_post_title a{
    display: block;
    text-decoration: dotted;
    text-underline-offset: 2px;
    color: var(--blue);
}
.vk_post_taxonomy_terms{
    margin-top: .5rem;
    margin-bottom: 0;
}
.vk_post_taxonomy_term{
    display: inline-block;
    font-size: .8em;
    margin-right: .25em;
    margin-bottom: .25em;
    background: #e5e5e5;
    padding: .25em .5em;
}
/* END 投稿ループ */

/* サイドバー */
.archive_toggle_list:after{
    content: '';
}
/* END サイドバー */


/* Millen公式へのバナー002 */
.sidebanner-millen002 {
    --millen002-primary: #f97314;
    --millen002-primary-dark: #c25200;
    --millen002-text-dark: #fff;
    --millen002-bg-light: #fff5ed;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
    border: solid 1px var(--millen002-primary-dark);
}
.sidebanner-millen002-container {
    background: var(--millen002-primary) url("imgs/millenbanner002-bg.svg") center/100% no-repeat;
    border: 1px solid #e0e0e0;
    border-top: 4px solid var(--millen002-primary);
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    transition: background-size 0.2s ease;
}

.sidebanner-millen002-header {
    padding: 18px 15px 10px;
    text-align: center;
}

.sidebanner-millen002-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebanner-millen002-body {
    padding: 1em 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebanner-millen002-group {
    display: inline-flex;
    flex-direction: column;
    align-self: center;
    gap: 10px;
}

.sidebanner-millen002-item {
    display: flex;
    align-items: flex-start;
    gap: .4em;
    font-size: 13.5px;
    color: var(--millen002-text-dark);
    font-weight: 500;
}

.sidebanner-millen002-item i {
    width: 1.2em;
    font-size: 1.4em;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
}
.sidebanner-millen002-guarantee {
    border: dashed 1px var(--millen002-bg-light);
    color: var(--millen002-bg-light);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
}

.sidebanner-millen002-cta {
    display: block;
    color: var(--millen002-primary);
    background-color: var(--millen002-bg-light);
    text-align: center;
    padding: 12px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
    box-shadow: 0 4px 0 var(--millen002-primary-dark);
    transition: all 0.1s;
}

.sidebanner-millen002:hover .sidebanner-millen002-container{
    background-size: 120%;
    transition: background-size 0.2s ease;
}

.sidebanner-millen002-text {
    word-break: break-word;
    flex: 1;
}
/* END Millen公式へのバナー */

/* 個別記事部分 */
.entry-title{
    font-size: 1.5rem;
    padding: .5em .5em .75em;
    border-style: solid;
    border-width: 1px 0;
    border-color: #d9d9d9;
    position: relative;
}
.entry-title:after {
    content: '';
    display: block;
    position: absolute;
    top: -6px;
    bottom: 3px;
    right: 3px;
    left: -6px;
    border-style: solid;
    border-width: 2px 0;
    border-color:var(--orange);
}
.post .entry-body h2{
    position: relative;
    border: none;
    font-size: 1.25em;
    padding: 1em 1.1em;
    margin-top: 2.1em;
    margin-bottom: 1em;
    border-radius: 3px;
    background: #2a363f;
    color: #fff;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.25) inset;
}
.post .entry-body h2:before{
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    right: 0;
    border-style: dashed;
    border-width: 1px 0;
    border-color: currentColor;
    pointer-events: none;
}
.post .entry-body h3{
    border-left: solid 8px currentColor;
    padding-left: .5em;
}
.post .entry-body h4{
    border-left: solid 4px #ccc;
    padding-left: .5em;
}
.post .entry-body a,
.post .entry-body a:visited {
    color: #0273b8;
}
.post .entry-body a:hover{
    color: var(--orange);
}
.next-prev .vk_post-col-md-6 {
    position: relative;
    overflow: unset;
}
.next-prev .vk_post-col-md-6:after {
    content: '\02190';
    color: #b5b5b5;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1rem;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.next-prev .vk_post-col-md-6:nth-child(2):after {
    content: '\02192';
    left: auto;
    right: 0;
}
/* END 個別記事部分 */

/* フッター */
.site-footer{
    padding-bottom: 4rem;
    background: #f5f5f5;
    border-top: double 4px #ccc;
    margin-top: 6rem;
}
/* END フッター */

/* モバイルナビ */
.vk-mobile-nav-menu-btn{
    border-radius: 50%;
    width: 8dvw;
    height: 8dvw;
    top: 1dvw;
    border-color: #fff;
}
.vk-mobile-nav nav ul li a{
    text-align: center;
}
/* END モバイルナビ */
