@charset "utf-8";
/*==============================================================================
	news一覧 style
============================================================================= */

/*タイトル*/

.path-news .view-news-list .view-content {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    padding: 10px 50px 35px 50px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.view-news-list .item-list {
    width: 100%;
}

.view-news-list .item-list ul {
    display: flex;
    flex-wrap: wrap;
    padding-inline-start: 0px;
}

.view-news-list .item-list ul>li {
    width: 100%;
    margin-bottom: 20px;
    border-bottom: solid 1px #efefef;
}

.view-news-list .item-list ul>li a {
    padding: 8px 0;
    text-decoration: none;
    color: #000;
    display: flex;
}

.view-news-list .item-list .info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.view-news-list .item-list .date {
    font-size: 12px;
    color: #273746;
    width: 100px;
}

.view-news-list .item-list .cat {
    font-size: 11px;
    color:#566573;
    border: solid 1px #566573;
    display: inline-block;
    text-align: center;
    border-radius: 25px;
    padding: 0px 15px;
    height: 20px;
    /* line-height: 20px; */
    line-height: 17px;
}

.view-news-list .item-list .ttl {
    font-size: 13px;
    margin-left: 20px;
}

@media (hover: hover) {
    .view-news-list .item-list ul>li a:hover .ttl {
        background: linear-gradient(to right, #0083ED 0%, #02BBFE 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }
}

@media only screen and (min-width: 768px) {
    .path-news .view-news-list .ttl_flex {
        margin-bottom: 30px;
    }
}


@media only screen and (max-width: 768px) {
    .path-news .view-news-list .view-content {
        margin: 0 auto 40px;
    }

    .path-news .view-news-list .view-content {
        padding: 0px 20px;
    }

    .view-news-list .item-list ul>li a {
        flex-direction: column;
    }

    .view-news-list .item-list .ttl {
        margin-left: 0px;
        font-size: 13px;
    }

    .view-news-list .item-list .date {
        width: fit-content;
    }
}

/*==============================================================================
	news詳細 style
============================================================================= */

/* @media only screen and (min-width: 768px) {
    .page-node-type-news #block-maiken-content article {
        height: calc(100vh - 180px);
    }
} */

.page-node-type-news #block-maiken-content article {
    max-width: 1280px;
    margin: 100px auto 0;
    position: relative;
    padding: 0 50px;
}


.page-node-type-news #block-maiken-content article .detail-header {
    display: flex;
    flex-direction: column-reverse;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    gap: 10px;
}

.page-node-type-news #block-maiken-content article .detail-header h1 {
    font-size: clamp(20px, 2.5vw, 32px);
}

.page-node-type-news #block-maiken-content article .field--name-field-news-category {
    font-size: 0.9rem;
    border: solid 1px #343434;
    width: 120px;
    display: block;
    text-align: center;
    border-radius: 25px;
    position: absolute;
    top: 0;
    left: 165px;
}

.page-node-type-news .field--name-body,
.page-node-type-news .field--name-body p {
    line-height: 1.8;
}

.page-node-type-news .field--name-body p {
    margin: 0;
}


/*一覧に戻るボタン*/
.page-node-type-news .back-btn-warp {
    width: fit-content;
    margin: 40px auto 50px;
}

.page-node-type-news .back-btn {
    position: relative;
    display: inline-block;
    padding: 10px 50px 10px 40px;
    font-size: 16px;
    color: #343434;
    text-decoration: none;
    border: 1px solid #343434;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* 丸ぽち（右） */
.page-node-type-news .back-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.2em;
    transform: translate(50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #343434;
    border-radius: 50%;
    transition: width 0.4s ease,
        height 0.4s ease,
        right 0.4s ease,
        background-color 0.4s ease;
    z-index: 1;
}

/* テキスト前面に */
.page-node-type-news .back-btn span {
    position: relative;
    z-index: 2;
}

/* 矢印（右） */
.page-node-type-news .back-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.2em;
    transform: translate(50%, -50%);
    width: 20px;
    height: 15px;
    opacity: 0;
    background-image: url(/themes/custom/maiken/images/icons/arrow_right.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease 0.2s;
    z-index: 2;
}

/* ホバー時：背景が塗りつぶし → 矢印出現 */
.page-node-type-news .back-btn:hover::before {
    width: 100%;
    height: 100%;
    right: 50%;
    border-radius: 0;
    background-color: #343434;
}

.page-node-type-news .back-btn:hover {
    color: #fff;
}

.page-node-type-news .back-btn:hover::after {
    opacity: 1;
}

.page-node-type-news .breadcrumb-item:last-child {
    padding-right: 40px;
}



@media only screen and (max-width: 768px) {
    .page-node-type-news #block-maiken-content article {
        margin: 70px auto 0;
    }

    .page-node-type-news #block-maiken-content article {
        padding: 0 20px;
    }

    .page-node-type-news #block-maiken-content article .field--name-field-news-category {
        left: 140px;
    }

    .page-node-type-news .breadcrumb-item:last-child {
        padding-right: 20px;
    }
}



/*==============================================================================
	top style
============================================================================= */

.front-news-wapper {
    display: flex;
    justify-content: space-between;
}

.front-news-wapper .view-header {
    width: 200px;
    height: 83px;
    background: linear-gradient(to right, #0083ED 0%, #02BBFE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-news-wapper .view-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    font-family: "lato";
    text-shadow: 1px 1px 5px #1e6a9a;
}

.front-news-wapper .view-content {
    /* width: 80%; */
    width: calc(100% - 320px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.front-news-wapper .item-list ul {
    margin: 0;

}

.front-news-wapper .item-list ul>li {
    margin-bottom: 0;
    border: none;
}

.front-news-wapper.view-news-list .item-list .info {
    margin-bottom: 0;
}

/* .front-news-wapper .view-footer{
    display: flex;
    align-items: center;
} */

.front-news-wapper .view-footer a {
    text-decoration: none;
    color: #000000;
}

.front-news-wapper .read-more {
    display: flex;
    position: relative;
    height: 100%;
    margin-right: 20px;
}

.front-news-wapper .view-footer a {
    text-decoration: none;
    color: #000000;
    height: 100%;
    display: flex;
    align-items: center;
    width: 120px;
    font-size:13px;
}

.front-news-wapper .yazirushi {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.front-news-wapper .view-footer a:hover .yazirushi::before {
    background-color: #343434;
    transform: translate(50%, -50%) scale(4);
    border-radius: 50%;
    opacity: 1;
}

.front-news-wapper .view-footer a:hover .yazirushi::after {
    opacity: 1;
}

.front-news-wapper .view-footer a:hover {
    background: linear-gradient(to right, #0083ED 0%, #02BBFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.front-news-wapper .ttl {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    max-height: calc(1.5em * 1);
}

@media only screen and (max-width: 992px) {
    .front-news-wapper .item-list .info {
        gap: 10px;
    }
}

@media only screen and (max-width: 768px) {
    /* .front-news-wapper .yazirushi {
        width: 32px;
        height: 32px;
        top: auto;
        bottom: 5px;
        transform: none;
    } */

    .front-news-wapper .yazirushi::before {
        width: 5px;
        height: 5px;
    }

    .front-news-wapper .item-list,
    .front-news-wapper .item-list *:not(.info) {
        height: 100%;
    }

    /* 
    .front-news-wapper .view-footer a {
        width: 120px;
        align-items: end;
    } */

    .front-news-wapper .read-more {
        margin-right: 10px;
        padding: 8px 0;
    }

    .yazirushi::after {
        width: 20px;
        height: 10px;
    }

    .front-news-wapper .view-footer a:hover .yazirushi::before {
        transform: translate(50%, -50%) scale(4);
    }

    .front-news-wapper .yazirushi {
        width: 20px;
        height: 20px;
    }

    .front-news-wapper .view-footer a {
        width: 104px;
        /* align-items: end; */
    }

    .front-news-wapper .item-list .cat {
        height: auto;
        width: fit-content;
        padding: 0 10px
    }

    .front-news-wapper .item-list .date {
        font-size: 12px;
        height: fit-content;
    }

    /* .front-news-wapper.view-news-list .item-list .info {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 232px;
    } */


    /* .front-news-wapper .item-list .ttl {
        margin-top: auto;
        height: auto;
    } */

    .front-news-wapper .item-list ul>li a {
        justify-content: center;
    }

    .front-news-wapper .view-content {
        padding: 0 10px;
        width: calc(100% - 214px);
    }

    .front-news-wapper .view-header h3 {
        font-size: 14px;
        letter-spacing: 0px;
    }

    .front-news-wapper .view-header {
        width: 110px;
    }


}

@media only screen and (max-width: 500px) {
    .front-news-wapper .view-header {
        width: 70px;
    }

    .front-news-wapper .view-content {
        width: calc(100% - 174px);
    }
}

/*==============================================================================
	運営画面 style
============================================================================= */
.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0 0 0px;
    list-style: none;
    border-bottom: 2px solid #ddd;
    position: relative;
    z-index: 2;
    background-color: #fff;
    /* margin-top: 100px; */
}

.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary li a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    background-color: #f9f9f9;
    transition: background-color 0.2s, color 0.2s;
}

.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary li a:hover {
    background-color: #eee;
    color: #000;
}

.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary li.is-active a,
.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary li a.is-active,
.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary li a[aria-current="page"] {
    background-color: #fff;
    border-color: #ddd #ddd transparent;
    color: transparent;
    position: relative;
    z-index: 1;
}

.page-node-type-news #block-maiken-primary-local-tasks .tabs.primary li.is-active a::after {
    content: "表示";
    color: #333;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

/*==============================================================================
	ページネーション style
============================================================================= */

.pager__items {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pager__item a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pager__item a:hover {
    background: linear-gradient(to right, #0083ED 0%, #02BBFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pager__item.is-active a,
.pager__item a[aria-current="page"] {
    pointer-events: none;
    background: linear-gradient(to right, #0083ED 0%, #02BBFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* 共通化：次ページと最終ページのアイコンを消して、…を表示 */
.pager__item--next a,
.pager__item--previous a,
.pager__item--last a,
.pager__item--first a {
    position: relative;
    color: transparent;
    /* 元の ›› や » を見えなく */
}

/* それぞれに … を上書き */
.pager__item--next a::before,
.pager__item--previous a::before {
    content: "…";
    color: #343434;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
}

/* アイコンを背景に表示 */
.pager__item--last a::before,
.pager__item--first a::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url(/themes/custom/maiken/images/icons/yazirusi.svg);
    background-size: 140% auto;
    background-repeat: no-repeat;
    background-position: center;
    /* border-radius: 50%; */
    position: absolute;
    top: 0;
    left: 0;
    /* border: 1px solid #343434; */
    transform: rotate(270deg) scale(1);
}

.pager__item--first a::before {
    transform: rotate(-270deg) scale(1);
}

.pager__item--last a:hover,
.pager__item--first a:hover {
    color: transparent;
    background: none;
}