@charset "utf-8";

/* news.css */

.h1_bg.news {
    background-image: url(../images/h1_bg_news.jpg);
}

a img {
    transition: all 0.3s;
}

a:hover img {
    opacity: 0.6;
}

figure a {
    display: block;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
    text-align: center;
}

.alignright {
    display: block;
    float: none;
    margin-left: auto;
    margin-bottom: 20px;
    text-align: right;
}

.alignleft {
    display: block;
    float: none;
    margin-right: auto;
    margin-bottom: 20px;
    text-align: left;
}

.news .content_area p.news_ttl,
.archive .content_area p.news_ttl {
    margin-top: 2px;
}

.news .content_area ul,
.archive .content_area ul {
    padding-left: 0;
}

.news .news_tab,
.archive .news_tab {
    margin: 60px auto 50px;
}

/* tab */
.content_area .news_tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    margin: 0;
}

.content_area .tab_link {
    position: relative;
    display: inline-block;
    margin-right: 20px;
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s;
    background: #fff;
    border-radius: 9999px;
    padding: 8px 20px;
    color: #274C3C;
    border: 1px solid #ddd;
}

.content_area .tab_link:hover,
.content_area .active .tab_link {
    color: #fff;
    background: #274C3C;
    border-color: #274C3C;
}

/*
.content_area .tab_link::before {
    background: #4BBCD0;
    bottom: -8px;
    content: "";
    display: block;
    height: 4px;
    left: 0;
    position: absolute;
    transition: all 0.2s ease;
    width: 0;
    z-index: 10;
}

.content_area .tab_link:hover::before, .content_area .active .tab_link::before {
    width: 100%;
}*/

.content_area .news_tab li:last-child .tab_link {
    margin-right: 0;
}

.content_area .news_tab li {
    position: relative;
    display: block;
    list-style: none;
}

/*
.content_area .news_tab li:not(:last-child)::after {
	position: absolute;
	content: '';
	display: inline-block;
	margin-right: 20px;
	width: 1px;
	height: 24px;
	background: #CCCCCC;
	top: 0;
	bottom: 0;
	margin: auto;
	right: 15px;
}*/



.select_item.cate_select {
    display: none;
}

.select_name {
    display: none;
}

.select_item {
    position: relative;
    border: 1px solid #ddd;
}

.select_item.cate_select {
    display: none;
}

.select_item::after {
    position: absolute;
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: rotate(45deg);
    top: 0;
    bottom: 0;
    right: 23px;
    margin: auto;
}

.select_item_in {
    display: block;
    width: 100%;
    padding: 12px 40px 13px 12px;
    background: #fff;
    color: #333 !important;
    font-family: var(--noto);
    font-size: 1.6rem;
    letter-spacing: 1.28px;
    line-height: 2.4rem;
    webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.news_wrap {
    max-width: 1140px;
    padding: 0 20px 80px;
    margin: auto;
}

.news_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.news_head {
    margin: 0;
    text-align: center;
    font-size: 2.8rem;
    font-weight: bold;
}

.select_wrap {
    display: none;
}

.news_cat_list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 10px 0 0 0;
}

.news_cat_item {
    position: relative;
    list-style: none;
    font-size: 2.0rem;
    font-weight: bold;
    letter-spacing: 1.56px;
    line-height: 2.9rem;
}

.news_cat_item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 1px;
    height: 20px;
    background: #ccc;
}

.news_cat_item:last-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 1px;
    height: 20px;
    background: #ccc;
}

.news_cat_link {
    display: block;
    position: relative;
    margin: 0 30px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    opacity: .5;
}

.news_cat_link:hover,
.on .news_cat_link {
    color: #0C91B1;
    opacity: 1;
}

.news_cat_link::before {
    background: #4BBCD0;
    bottom: -8px;
    content: "";
    display: block;
    height: 4px;
    left: 0;
    position: absolute;
    transition: all 0.2s ease;
    width: 0;
    z-index: 10;
}

.news_cat_link:hover::before,
.on .news_cat_link::before {
    width: 100%;
}

.news_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    padding: 0;
    margin-bottom: 50px;
}

.news_item {
    list-style: none;
}

.news_thumb {
    position: relative;
    padding-bottom: 75%;
    margin-bottom: 15px;
    overflow: hidden;
}

.news_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news_txt_in {
    transition: all 0.3s;
}

a:hover .news_thumb img {
    transform: scale(1.05);
    opacity: 1;
}

a:hover .news_txt_in {
    color: #274C3C;
}

a:hover .news_cate {
    border: 1px solid #274C3C;
    color: #274C3C;
}

.news_date {
    margin-right: 10px;
    font-size: 1.4rem;
    letter-spacing: 1.44px;
    line-height: 1.2rem;
}

.news_title {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 2.1px;
    line-height: 2.5rem;
    margin-top: 10px;
}

.news_cate {
    border: 1px solid #807E7E;
    padding: 3px 10px;
    border-radius: 4px;
    color: #807E7E;
    font-size: 1.4rem;
    line-height: 2.2rem;
    text-align: center;
}

.news_link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333 !important;
    text-decoration: none !important;
    transition: border 0.3s;
}

.news_wrap .link_btn {
    text-align: center;
}


/**** single.php ******/
#news_t {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 60px auto 0;
}

#news_s {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 50px 0;
    margin: 30px 0;
}

#news_s>*:first-child {
    margin-top: 0;
}

#news_s>*:last-child {
    margin-bottom: 0;
}

#news_retop {
    display: flex;
    justify-content: center;
}

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

    .news .news_tab,
    .archive .news_tab {
        /*margin: 30px auto 20px;*/
        display: none;
    }

    /* tab */

    .content_area .news_tab {
        justify-content: inherit;
    }

    .content_area .news_tab .tab_item {
        width: 50%;
        text-align: center;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .content_area .news_tab .tab_item:nth-child(2n)::after {
        content: none;
    }

    .content_area .news_tab .tab_item:not(:last-child)::after {
        right: 0;
    }

    .content_area .news_tab li .tab_link {
        margin-right: 0;
    }

    .news_wrap {
        padding: 0 20px 60px;
    }

    .news_area {
        padding: 60px 20px 100px;
    }

    .news_head {
        font-size: 2.4rem;
    }

    .select_wrap {
        margin: 20px 0 20px;
        position: relative;
        display: block;
    }

    .select_news_tab {
        font-size: 1.3rem;
        letter-spacing: 1.3px;
        line-height: 1.5rem;
        color: #333;
        border: 1px solid #ccc;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none;
        cursor: pointer;
        width: 100%;
        padding: 16px 18px;
        background: transparent;
    }

    .select_box {
        width: auto;
        margin-top: 35px;
    }

    .select_box_in {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        max-width: 400px;
        margin: auto;
    }

    .select_name {
        display: none;
    }

    .select_item {
        width: 100%;
        margin: 0 20px 10px;
    }

    .select_item.cate_select {
        display: block;
    }

    .select_item::after {
        top: 0;
        right: 20px;
    }

    .select_item_in {
        padding: 14px 50px 14px 10px;
    }

    .post_search_box {
        margin-bottom: 35px;
    }



    .select_wrap::after {
        position: absolute;
        content: '';
        width: 8px;
        height: 8px;
        border-right: 1px solid #222;
        border-bottom: 1px solid #222;
        transform: rotate(45deg);
        top: calc(50% - 5px);
        right: 17px;
        z-index: 1;
    }

    .news_top {
        display: block;
        margin-bottom: 30px;
    }

    .news_item {
        margin-bottom: 30px;
    }

    .news_link {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .news_list {
        margin-top: 30px;
        margin-bottom: 20px;
        display: block;
    }

    .news_list li {
        position: relative;
        padding-bottom: 0;
        width: 100%;
        margin-right: 0;
    }

    .news_list li a {
        display: flex;
        align-items: flex-start;
    }

    .news_thumb {
        width: 150px;
        margin-right: 13px;
        padding-bottom: 90px;
        margin-bottom: 0;
    }

    .news_txt {
        width: calc(100% - 113px);
    }

    .news_title {
        font-size: 1.3rem;
        letter-spacing: 1.8px;
        line-height: 2.1rem;
        margin-bottom: 0;
        margin-top: 5px;
    }


    .news_date {
        font-size: 1.1rem;
        letter-spacing: 0.22px;
        margin-right: 10px;
        margin-top: 1px;
    }

    .news_cate {
        font-size: 1.1rem;
        letter-spacing: 0.22px;
        padding: 0 10px 1px;
    }


    /**** single.php ******/

    #news_t {
        margin: 30px auto 0;
    }

    #news_s {
        padding: 20px 0;
        margin: 20px 0;
    }

}