@charset "UTF-8";

/*---------------------------
  
  1.カテゴリー選択
  2.記事レイアウト
  3.アーカイブ
  4.記事一覧
  5.記事詳細

---------------------------*/

/* ================================================================
 * 
 * カテゴリー選択
 * 
 * ================================================================ */


.category{
    padding: 4.8rem 3.3% 3.2rem 3.3%;
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .category{
        padding: 9.6rem 3.3% 6.4rem 3.3%;
    }
    .category__container{
        max-width: 1600px;
        margin:  0 auto;
    }
}

.custom-select{
    height: 70px;
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .custom-select{
        width:390px;
    }
}

.selectbox {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.selectbox::after {
    pointer-events: none;
    position: absolute;
    right: 15px;
    content: '';
    background:url(./../images/icon-arrow-down.svg) no-repeat right center;
    width:15px;
    height: 8px;
}

.selectbox select {
	color:var(--color-text-main);
    appearance: none;
    min-width: 230px;
    height: 2.8em;
    padding: .4em calc(.8em + 30px) .4em .8em;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background-color: var(--color-bg-alt);
    cursor: pointer;
}


/* ================================================================
 * 
 * 記事レイアウト
 * 
 * ================================================================ */

.news-layout{
    padding:0 3.3%;
}

.news-layout__container{
    max-width: 1600px;
    margin:  0 auto;
    display: flex;
    gap: 5.6rem;
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (max-width: 959px) {
    .news-layout__container{
        flex-direction:column-reverse
    }
}

/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-layout{
        padding: 0 3.3%;
    }
    .news-layout__container{
        max-width: 1600px;
        margin:  0 auto;
        display: flex;
    }
}

.news-layout__main{
    margin-bottom: 6.4rem;
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-layout__main{
        width:82.5%;
        margin-bottom: 12.8rem;
    }
}

/* ================================================================
 * 
 * アーカイブ
 * 
 * ================================================================ */

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (max-width: 959px) {
    .news-layout__archive-list{
        display: flex;
        margin-bottom: 1.6rem;
    }

    .news-layout__archive-item:first-of-type::before{
        content: "｜";
    }

    .news-layout__archive-item::after{
        content: "｜";
    }
}

.news-layout__archive-link{
    color:var(--color-border);
    text-decoration: none;
    transition: color 0.5s ease;
}

.news-layout__archive-link:hover{
    color:var(--color-text-main);
}

.is-current .news-layout__archive-link{
    color:var(--color-text-main);
}


/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-layout__sidebar{
        width:17.5%;
    }
    
    .news-layout__monthly-group:not(:last-of-type){
        margin-bottom: 4.8rem;
    }

    .news-layout__archive-list{
        margin-left: 2.4rem;
    }
    
    .news-layout__archive-item .news-layout__archive-link::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-bottom: .2rem;
        background: url(./../images/icon-arrow-down-triangle.svg) no-repeat center center / contain;
        transform: rotate(-90deg);
        opacity: 0.3; 
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .news-layout__archive-item.is-current .news-layout__archive-link::before,
    .news-layout__archive-item .news-layout__archive-link:hover::before {
        opacity: 1; /* ホバーでくっきりさせる */
        transform: rotate(-90deg);
    }
}
    
/* ================================================================
 * 
 * 記事一覧
 * 
 * ================================================================ */

.news-list__monthly-group:not(:last-of-type){
    margin-bottom: 2.4rem;
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-list__monthly-group:not(:last-of-type){
        margin-bottom: 4.8rem;
    }
}


/*年度*/
.news-list__group-year{
    font-size: 4.0rem;
    margin-bottom: 2.4rem;
    font-weight: var(--font-weight-medium);
}
.news-list__group-year span{
    font-size: 2.4rem;
}

/*月*/
.news-list__group-month{
    font-size: 4.0rem;
    margin-bottom: 1.6rem;
    color:var(--color-accent);
    font-weight: var(--font-weight-medium);
}
.news-list__group-month span{
    font-size: 2.4rem;
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-list__group-year{
        margin-bottom: 4.8rem;
    }
    
    .news-list__group-month{
        margin-bottom: .8rem;
    }
}

/*記事一覧*/
.news-list__link{
    color:var(--color-text-main);
    text-decoration: none;
    display: block;
}

.news-list__link:hover{
    opacity: .8;
}

.news-list__items{
    border-top: 1px solid var(--color-line);
    padding: 2.4rem 0;
}
.news-list__link:last-child .news-list__items {
    border-bottom: 1px solid var(--color-line);
}
/******************Media Queries******************/
/* --- 768px: Tablet Landscape & PC Base --- */
@media (min-width: 768px) {
    .news-list__items{
        display: flex;
        align-items: center;
    }  
}

.news-list__meta{
    display: flex;
    align-items: center;
}

/*画像*/
.news-list__img{
    border-radius: 6px;
    margin: 0 auto 1.6rem auto ;
}

/******************Media Queries******************/
/* --- 768px: Tablet Landscape & PC Base --- */
@media (min-width: 768px) {
    .news-list__img{
        width: 230px;
        height: 163px;
        object-fit: cover; 
        overflow: hidden; 
        object-position: top;
        margin: 0 4.0rem 0 0;
    }
}

.news-list__content{
    flex:1;
}

/*カテゴリ*/
.news-list__category{
    font-size: 1.2rem;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
	color:var(--color-bg-alt);
    border-radius: 3px;
    
    padding: 0;
    width:7.0rem;
    text-align: center;
    display: inline-block;
    line-height: 1.8;
}

/*日付*/
.news-list__date{
    font-size: 1.6rem;
    margin-right: .5rem;
    width:8.0rem;
}

/*見出し*/
.news-list__title{
    font-size: 1.8rem;
}

.news-list__link-blank::after {
    content: "";
    display: inline-block;
    background: url(./../images/icon-link-blk.svg) no-repeat right bottom;
    width: 12px;
    height: 12px;
    margin-left: 0.5rem;
}


/*タイトル*/
.news-layout__group-title{
    text-align: center;
    border:1px solid var(--color-text-main);
    border-radius: 4px;
    font-size: 1.8rem;
    padding: .8rem 0;
    margin-bottom: 2.0rem;
}
/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-layout__group-title{
        margin-bottom: 4.0rem;
    }
}

/* ================================================================
 * 
 * 記事詳細
 * 
 * ================================================================ */

.news-detail__container{
    margin-top: 4.8rem;
}
/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-detail__container{
        margin-top: 9.6rem;
    }    
}

/*title*/
.news-detail__title{
    font-size: 2.0rem;
    margin-top: 1.2rem;
    padding-bottom: 2.0rem;
    border-bottom: 1px solid var(--color-line);
    margin-bottom: 2.0rem;
}
/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-detail__title{
        font-size: 4.0rem;
        line-height:6.0rem; 
        margin-top: 2.4rem;
        margin-bottom: 4.0rem;
    }    
}


/* 「画像」のすぐ後に「テキスト」が来た時だけ、上に余白をつける */
.news-article__image + .news-article__text {
  margin-top: 2.0rem;
}
/* 「テキスト」のすぐ後に「画像」が来た時だけ、上に余白をつける */
.news-article__text + .news-article__image {
  margin-top: 2.0rem;
}

/* 【テキスト + テキスト】 の場合 */
.news-article__text + .news-article__text {
    margin-top:  1.6rem;
}

/* Modifierによる打ち消し */
.news-article__text--no-mt {
    margin-top: 0 !important; 
}

/*横並び*/
.news-article__group{
  margin-top: 2.0rem;
}

.news-article__group ul:not(:last-of-type){
    margin-bottom: 2.0rem;
}

.news-article__subimage + .news-article__subtext {
    margin-top: 1.6rem;
    
}

/******************Media Queries******************/
/* --- 960px: Standard Desktop --- */
@media (min-width: 960px) {
    .news-article__text {
        line-height: 3.6rem;
        font-size: 1.8rem;
    }
    /* 「画像」のすぐ後に「テキスト」が来た時だけ、上に余白をつける */
    .news-article__image + .news-article__text {
      margin-top: 4.0rem;
    }
    /* 「テキスト」のすぐ後に「画像」が来た時だけ、上に余白をつける */
    .news-article__text + .news-article__image {
        margin-top: 4.0rem;
    }
    /* 【テキスト + テキスト】 の場合 */
    .news-article__text + .news-article__text {
        margin-top:  3.2rem;
    }
    
    .news-article__group{
        margin-top: 4.0rem;
        display: flex;
        justify-content: space-between;
        gap: 3.95%;
    }
    
    .news-article__group--col-3 ul{
        width: 30.7%;
    }

    .news-article__group ul:not(:last-of-type){
        margin-bottom: 0;
    }

    .news-article__subimage + .news-article__subtext {
        margin-top:  3.2rem;

    }
}
