@charset "UTF-8";

:root {
    --main-color: #006E42;
    --white-color: #FFFFFF;

    /* テキストフォント */
    /* 日本語ベース */
    --font-base-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    /* 英語見出し */
    --font-base-family-en: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    --font-base-size: 1rem; /* 16px */
    --font-base-weight-medium: 500;
    --font-base-weight-regular: 400;
    --font-base-weight-semibold: 600;
    --font-base-weight-bold: 700;
    --font-base-weight-black: 900;
    --font-base-line-height: 1.8;

    /* テキストカラー */
    --base-text-color: #000000;
    --white-text: #FFFFFF;
}

/*===========================================================================
*   見出し
===========================================================================*/

.sub-page-header .h3-en span {
    font-size: clamp(1.25rem, -0.299rem + 3.22vw, 3.125rem);
}

/* ===========================================================================
*  お知らせ & トピックス エリア
=========================================================================== */

.main-content-1 {
    padding-top: 3.9375rem; /* 63px */
    padding-bottom: 9.6162rem; /* 153.86px */

    display: flex;
    flex-direction: column;

    gap: 6.375rem; /* 102px */
}

.main-content-1 .category-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.main-content-1 .category-list .category-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.main-content-1 .category-list .category-item {
    padding: 0.6875rem 2.5rem;
    font-size: 1.125rem;
    line-height: 1;
    background-color: #F5F5F5;
    cursor: pointer;
    transition: 0.3s;
}

/* hover できるデバイス（PCなど）だけ hover を適用 */
@media (any-hover: hover) {
    .main-content-1 .category-list .category-item:hover {
        opacity: 0.8;
    }
}

/* 選択時 */
.main-content-1 .category-list .category-item:has(input:checked) {
    background-color: var(--main-color);
    color: var(--white-text);
}

/* フォーカス状態（キーボード操作対応） */
.main-content-1 .category-list .category-item:has(input:focus-visible) {
    outline: 2px solid var(--main-color);
}

.main-content-1 .item-wrap .item .content-wrap {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1.375em; /* 22px */

    padding: 3.175em 1.75em 3.175em 0;

    border-bottom: 1px dashed rgba(0, 0, 0, 0.43);
}

.main-content-1 .item-wrap .item:first-child .content-wrap {
    padding-top: 0;
}

.main-content-1 .item-wrap .item:last-child .content-wrap {
    padding-bottom: 0;
    border-bottom: none;
}

.main-content-1 .item-wrap .item .content-wrap .meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 1.70em; /* 29px */
    
    font-size: 1.0625rem; /* 17px */
    line-height: 1;
}

.main-content-1 .item-wrap .item .content-wrap .category {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 119px;
    height: 27px;
    /* padding: 0.538em 2.615em; */
    border-radius: 5px;
    font-size: 0.9375rem; /* 15px */
    line-height: 1;
    color: var(--white-text);
    background: var(--main-color);
}

.main-content-1 .item-wrap .item .content-wrap .text {
    font-size: 1.25rem;
    line-height: 1.3;
}

@media (any-hover: hover) {

    .item-wrap a:hover {
        opacity: 0.8;
    }
}

/*===========================================================================
*   ページネーション
===========================================================================*/

.yajirushi-wrap {
    display: flex;
    flex-direction: row;
    justify-content: end;

    gap: 6.3px;

    /* デザインと同じ余白に合わせるため-23px */
    margin-top: -1.4375rem; /* -23px */
}

.yajirushi-wrap .slider-arrow{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 37.14px;
    height: 37.14px;

    font-size: 1.125rem; /* 18px */
    background-color: var(--white-color);
    border: 1px solid #CBCBCB;

    cursor: pointer;
    transition: 0.3s;
}

.slider-arrow input {
    display: none;
}

/* 選択状態 */
.slider-arrow:has(input:checked) {
    background-color: var(--main-color);
    color: var(--white-text);
}

/* 左矢印 */
/* < */
.slider-arrow.prev::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url("../../image/news/yajirushi-left-1.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 7.83px;
    height: 12.68px;
}
/* << */
.slider-arrow.double.prev::before {
    background-image: url("../../image/news/yajirushi-left-2.svg");
    width: 14.67px;
    height: 13px;
}

/* 右矢印 */
/* > */
.slider-arrow.next::before {
  content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url("../../image/news/yajirushi-right-1.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    width: 7.83px;
    height: 12.68px;
}
/* >> */
.slider-arrow.double.next::before {
    background-image: url("../../image/news/yajirushi-right-2.svg");
    width: 14.5px;
    height: 13px;
}

/* hover できるデバイス（PCなど）だけ hover を適用 */
@media (any-hover: hover) {
    .yajirushi-wrap .slider-arrow:hover {
        opacity: 0.8;
    }
}

/* フォーカス状態（キーボード操作対応） */
.slider-arrow:has(input:focus-visible) {
    outline: 2px solid var(--main-color);
}

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

    .main-content-1 .category-list {
        justify-content: center;
        gap: 6px;
    }

    .main-content-1 .category-list .category-item {
        padding: 0.6666rem 0.6333rem;
        /* 375px~402px幅ではフォントサイズ13~15px */
        font-size: clamp(13px, calc(13px + 2 * (100vw - 375px) / 27), 15px);
    }

    .main-content-1 .category-list .category-item:first-child {
        padding: 0.6666rem 1.1rem;
        /* padding: 10px 16.5px; */
    }

    .main-content-1 .item-wrap .item .content-wrap {
        flex-direction: column;
        gap: 0.785em;
        padding: 1em 1.785em 1em 0;
    }

    .main-content-1 .item-wrap .item .content-wrap .meta {
        gap: 0.5em;
        font-size: 1rem;
    }

    .main-content-1 .item-wrap .item .content-wrap .category {
        width: 110px;
        height: 25px;
        font-size: 0.8571rem;
    }

    .main-content-1 .item-wrap .item .content-wrap .text {
        font-size: 1.0714rem;
    }

    /*===========================================================================
    *   ページネーション
    ===========================================================================*/

    .yajirushi-wrap {
        justify-content: center;
    }
    
}

/* ▼ ～768px：スマホ～タブレット */
@media screen and (max-width: 768px) {

    /*===========================================================================
    *   見出し
    ===========================================================================*/

    .sub-page-header .h3-en span {
        font-size: clamp(1.786rem, 1.491rem + 0.61vw, 2.143rem);
    }    

    /* ===========================================================================
    *  お知らせ & トピックス エリア
    =========================================================================== */

    .main-content-1 {
        padding-top: 3.8571rem; /* 54px */
        padding-bottom: 5.2971rem; /* 74.16px */
        gap: 3.7143rem; /* 52px */
    }

    .main-content-1 .item-wrap .item .content-wrap .category {
        width: 103px;
        height: 16px;
        font-size: 0.8571rem;
    }

    /*===========================================================================
    *   ページネーション
    ===========================================================================*/

    .yajirushi-wrap {
        justify-content: center;
        gap: 6px;
        margin-top: 0.5rem; /* +7px */
    }

    .yajirushi-wrap .slider-arrow {
        width: 28.84px;
        height: 28.84px;
        font-size: 1.1429rem;
        line-height: 1;
        padding-bottom: 0.25rem;
    }

}
