:root {
    /* プライマリーカラー */
    --color-primary: #000000;
    --color-accent: #00888d;
    --color-title: #758686;
    --color-gray-dark: #001d1b;
    --color-gray-medium: #dfe0e6;
    --color-gray-light: #eeeff1;
    --color-white: #ffffff;

    /* フォントサイズ設定 - 小さいサイズ */
    --font-size-xx-small: calc(1vw + 10px);

    /* フォントサイズ設定 - やや小さいサイズ */
    --font-size-x-small: calc(1vw + 12px);

    /* フォントサイズ設定 - 普通のサイズ */
    --font-size-medium: calc(1vw + 14px);

    /* フォントサイズ設定 - 大きいサイズ */
    --font-size-large: calc(1vw + 16px);

    /* フォントサイズ設定 - さらに大きいサイズ */
    --font-size-x-large: calc(1vw + 18px);

    /* ヘッダーのタイトルフォントサイズ */
    --font-size-header-title: calc(1vw + 20px);
    --font-size-header-subtitle: calc(1vw + 16px);

    /* メインタイトルフォントサイズ */
    --font-size-main-title: calc(35px + (85 - 35) * ((100vw - 320px) / (1280 - 320)));
}

/* =====================
    common
========================= */
body{
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.08em;
    word-break: break-word;
    color: var(--color-primary);
    background-color: var(--color-white);
}

.inner{
    padding: 0 0 calc(50px + (130 - 50) * ((100vw - 320px) / (1200 - 320)));;
    width: 80vw;
	max-width: 1100px;
    margin: auto;
}

.section{
    padding: 100px 0 0;
	min-height: 25em;
}

.wrap-bg .section{
    padding-top: 50px;
}

.section-header{
    font-size: 70px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.btn,
.page-btn .wp-block-button__link,
.smf-action .smf-button-control__control{
    display: block;
    text-align: center;
    font-size: 14px;
    line-height: 1;
	color: var(--color-white);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 3em;
    padding: calc(17px + (19 - 17) * ((100vw - 320px) / (1200 - 320)));
    max-width: 270px;
    min-width: max-content;
    transition: 0.4s ease;
    width: 100%;
    min-width: 250px;
}

@media screen and (max-width: 1024px){
    body{
        font-size: 16px;
    }
    .section{
        padding-top: 40px;
    }

    .btn{
        font-size: 17px;
    }

}

@media screen and (max-width: 782px){
    body{
        font-size: 14px;
    }
	.inner{
        width: 85vw;
	}

    .btn{
        font-size: 15px;
    }

    .page-numbers{
        font-size: 15px;
		width: 40px;
        height: 40px;
        margin: 0 0.2em;
    }
}

/* =====================
    navigation
========================= */
.navigation{
    display: flex;
    justify-content: center;
    margin-top: 84px;
}
.page-numbers{
    font-size: 16px;
    color: var(--color-primary);
    width: 3.125em;
    height: 3.125em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    margin: 0 0.5px;
}

.page-numbers:hover,
.page-numbers.current{
    color: var(--color-white);
    background-color: var(--color-primary);
}

.page-numbers svg {
    height: calc((14 / 67) * 100%);
}

.page-numbers path{
    transition: 0.4s ease;
}

.page-numbers:hover path{
    fill: var(--color-white);
}

.page-numbers.prev svg {
    transform: scaleX(-1);
}

@media screen and (max-width: 782px){
    .page-numbers{
        font-size: 15px;
		width: 40px;
        height: 40px;
        margin: 0 0.2em;
    }
}

/* =====================
    固定ページ
========================= */
.main-visual {
    aspect-ratio: 1440 / 620;
}

.width80{
    margin-right: calc(30px + (70 - 30) * ((100vw - 375px) / (1400 - 375)));
    margin-left: calc(30px + (70 - 30) * ((100vw - 375px) / (1400 - 375)));
}
.custom-group {
    max-width: 1200px;
    margin: 0 auto;
}

.Jokers_table {
    border-left: 1px solid;
    padding-left: 50px;
}

.Jokers_table th,
.Jokers_table td{
    padding: calc(5px + (10 - 5) * ((100vw - 375px) / (1400 - 375)));
}
.Jokers_table th{
    width: 195px;
}

@media screen and (max-width: 782px){
    .main-visual {
        aspect-ratio: 14 / 10;
        min-height: 250px;
    }
    .Jokers_table {
        border: none;
        padding-left: 0;
    }
    .Jokers_table th, .Jokers_table td {
        display: block;
        width: 100%;
    }

    .Jokers_table th {
        background-color: var(--gray-light-color);
    }

    .Jokers_table td {
        padding-left: 20px;
    }
}

/* =====================
    TopのNews
========================= */

.custom-post-list{
    padding-top: max(40px, calc(30px + (60 - 30) * ((100vw - 320px) / (1400 - 320))));
    padding-right: 2em;
    padding-bottom: max(40px, calc(30px + (60 - 30) * ((100vw - 320px) / (1400 - 320))));
    padding-left: 2em;
}

.custom-post-list .news-title{
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: calc(10px + (20 - 10) * ((100vw - 375px) / (1400 - 375)));
}

.custom-post-list .post-item{
    display: flex;
    align-items: flex-start;
    padding: 0 0 max(16px, calc(16px + (16 - 16) * ((100vw - 320px) / (1400 - 320))));
    max-width: 1100px;
    margin: auto;
}

.post-item h2 {
    font-size: max(16px, calc(13px + (16 - 13) * ((100vw - 320px) / (1400 - 320))));
    margin: 0;
    font-weight: bold;
    width: 97%;
}

.post-item .post-date {
    font-size: max(14px, calc(10px + (14 - 10) * ((100vw - 320px) / (1400 - 320))));
    margin-bottom: 0;
    width: 130px;
}

.post-item h3{
    width: 97%;
}

.post-item a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

@media screen and (max-width: 782px) {
    .custom-post-list .post-item{
        display: block;
        padding-top: 20px;
        border-bottom: 1px solid var(--color-gray-medium);
    }
    .post-item h3{
        width: 100%;
    }
}

/* =====================
    アーカイブ(タク)
========================= */
.item_post {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.post_articleCol {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    width: 100%;
    max-width: 30%;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
    padding-bottom: calc(15px + (30 - 15) * ((100vw - 375px) / (1400 - 375)));
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 180px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.date {
    font-size: 0.875rem;
    color: #999;
}

.categories {
}

.post-content .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.post-content .categories:empty {
    margin: 0;
}

.category-link {
    font-size: 0.875rem;
    color: #0073e6;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 10px;
}

.card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 782px){
	.card{
		max-width: 100%;
	}
}
/* =====================
    固定ページ
========================= */
.page-title .smb-section__title{
    font-family: "Poppins", sans-serif;
    font-size: calc(30px + (65 - 30) * ((100vw - 375px) / (1400 - 375)));
    font-weight: 600;
}
.page-title .smb-section__lede-wrapper{
    margin-top: 10px;
}
.page-title .smb-section__lede{
    font-size: calc(17px + (21 - 17) * ((100vw - 375px) / (1400 - 375)));
    display: inline-block;
    color: var(--gray-light-color);
    background: linear-gradient(45deg, rgba(0,136,141,1) 0%, rgba(26,144,134,1) 61%, rgba(214,199,80,1) 100%);
    padding-left: .6em;
    padding-right: .6em;
}

/* =====================
    メインビジュアル
========================= */
.under-mainvisual{
    position: relative;
    width: 100%;
    height: calc(200px + (300 - 200) * ((100vw - 375px) / (1400 - 375)));
    background-image: url('/wp-content/themes/blockjokers-theme/assets/img/post/default-thumbnail.jpg') ;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.single-post .under-mainvisual{
    background-image: url('/wp-content/themes/blockjokers-theme/assets/img/post/default-thumbnail.jpg') ;
}

.under-mainvisual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.under-mainvisual__titleWrap {
    font-size: calc(28px + (40 - 28) * ((100vw - 375px) / (1400 - 375)));
    color: var( --color-white);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* =============================
    投稿コンテンツ sidebar
================================ */
.item_column02 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.item_column02 > div {
    flex: 0 0 66%;
    box-sizing: border-box;
    margin-bottom: 20px; 
}

.item_column02 > aside {
    flex: 0 0 30%;
    box-sizing: border-box;
}

.widget-title{
    padding: 0rem 1rem;
    border-left: 6px solid;
    margin-bottom: 10px;
}
.sidebar a {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dedede;
    transition: .3s;
}
.widget-img{
    max-width: 120px;
    max-height: 80px;
    object-fit: cover;
    box-sizing: border-box;
}
.widget-infoTitle{
    font-size: 0.9em;
    width: 100%;
    padding: .8em 1em;
    box-sizing: border-box;
}
@media screen and (max-width: 1024px){
    .widget-ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .item_column02 > div,
    .item_column02 > aside {
        flex: 0 0 100%;
    }
    .widget-ul {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* =============================
    投稿コンテンツ single
================================ */

.single__content{
    margin-top: 80px;
    padding-bottom: 80px;
}
.post-template-default .wp-block-heading.blog-ttl-01{
    position: relative;
    color: var(--accent-color);
    font-size: calc(16px + (19 - 16) * ((100vw - 320px) / (1024 - 320)));
    line-height: 1.65;
    margin-top: calc(25px + (50 - 25) * ((100vw - 320px) / (1024 - 320)));
    padding: .3em .3em .3em .9em;
    font-weight: 600;
    vertical-align: middle;
    background-color: var(--gray-light-color);
}
.blog-ttl-01::before{
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color);
    transform: translateY(-50%);
}
.single__body{
    margin-top: 50px;
    font-size: 1.7rem;
    font-weight: 400;
}

.single__body .img-wrap{
    width: 80%;
    margin: auto;
}

.single__content .date{
    font-size: 1.5rem;
    font-weight: 300;
    display: inline-block;
    margin-top: 10px;
}

.single__body{
    line-height: 1.65;
}

.single__btn{
    margin: 80px auto 0;
    width: 80%;
    max-width: 210px;
    overflow: hidden;
    border: 2px solid;
    border-radius: 50px;
    transition: .4s ease;
}

.single__btn-link{
    display: block;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    padding: 16px 0;
    transition: .4s ease;
}
@media screen and (max-width: 782px){
    .single__content{
        margin-top: 50px;
    }


    .single__body{
        font-size: 1.4rem;
    }

    .single__body .img-wrap {
        width: 100%;
    }
}

/* =====================
    single-article
========================= */
.single-article{
    padding-top:  calc(30px + (60 - 30) * ((100vw - 320px) / (1400 - 320)));
}

.single-article .item_column{
    background-color: var(--color-white);
}

.single-articleCol{
    background-color: var(--color-white);
    margin-bottom: calc(60px + (80 - 60) * ((100vw - 320px) / (1024 - 320)));
    /* padding: calc(20px + (40 - 20) * ((100vw - 320px) / (1024 - 320))) 
         calc(20px + (40 - 20) * ((100vw - 320px) / (1024 - 320))) 
         calc(20px + (60 - 20) * ((100vw - 320px) / (1024 - 320))) 
         calc(20px + (40 - 20) * ((100vw - 320px) / (1024 - 320))); */
}
.single-article__info{
    display: flex;
    align-items: center;
}

.single-article__time{
    font-size: 0.9em;
}

.single-article__title{
    font-size: calc(19px + (27 - 19) * ((100vw - 375px) / (1400 - 375)));
    font-weight: 500;
    line-height: 1.9;
    margin-top: 1.1458em;
}

.single-article__body{
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding: 50px 0;
    margin-top: 28.8px;
}

.single-article__body p{
	word-break: break-all;
}
.single-article__body .wp-caption-text{
    font-size: 0.9em;
    margin-top: 0.5em;
}
.single-article__body p a {
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 1px solid;
	transition:.3s;
}
.single-article__body p a:hover{
	opacity:.7;
}
.single-article__body *:first-child{
    margin-top: 0;
}

.single-article__body * + *{
    margin-top: 20px;
}

.single-article__body * + * a{
    margin-top: 0;
}

.single-article .btn{
    margin: 80px auto 0;
}

.single-article__thumb{
    width: 90%;
    max-width: 735px;
    margin: 0 auto 4.5em;
    box-shadow: 0 10px 25px 0 rgb(90 90 90 / 10%);
}
@media screen and (max-width: 1024px){
    .single-article__title{
        font-size: 26px;
    }
}

@media screen and (max-width: 782px){
	.single-article {
    padding: 30px 0;
}
    .single-article__time{
        font-size: 15px;
    }
	.single-article__body * + * {
    margin-top: 15px;
	}

    .single-article__title{
        font-size: 20px;
        line-height: 1.71;
        margin-top: 20px;
    }

    .single-article__body{
        padding: 20px 0 30px 0;
        margin-top: 10px;
    }

    .single-article__body p{
        line-height: 1.68;
    }

    .single-article .btn{
        margin-top: 60px;
    }
}

/* 情報ブロックをテーブルのように表示 */
.two-table{
    max-width: 960px;
    margin: auto;
}
.two-table .c-row{
    padding: 25px;
}
.two-table .wp-block-snow-monkey-blocks-information-item{
    margin: 0;
}
.two-table .wp-block-snow-monkey-blocks-information-item:nth-child(odd) .c-row{
    background-color: var(--color-white);
}
.two-table .wp-block-snow-monkey-blocks-information-item:nth-child(even) .c-row{
    background-color: var(--gray-light-color);
}
.two-table .sme-bg-color{
    margin-right: 7px;
    padding-left: 5px;
    padding-bottom: 2px;
}
@media screen and (max-width: 782px){
    .two-table .c-row{
        padding: 15px 20px 45px;
    }
    .two-table .c-row>.c-row__col{
        margin-bottom: 0;
    }
}
