/**
 * #.# お知らせ・キャンペーン
 *
 * アーカイブ、記事個別ページに適用するCSS。
 */

/* ---------- 共通 ---------- */
.news-category {
    width: 110px;
    padding: 3px 0 4px;
    text-align: center;
    font-size: 14px;
    color: #FFF;
}

/* ---------- アーカイブ（一覧） ---------- */
.news-list {
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 290px);
    gap: 40px;
}
.news-list > li {
    display: flex;
    justify-content: center;
}

.news-list-content {
    width: 290px;
    height: 300px;
    display: block;
    border-radius: 40px;
    box-shadow: 3px 2px 5px rgba(144, 144, 144, .5);
    overflow: hidden;
}

@media screen and (max-width:428px){
    .news-list {
        display: flex;
        flex-direction: column;
    }

    .news-list-content {
        width: 100%;
        height: 315px;
    }
}

/* サムネイル */
.news-list-thumbnail {
    width: 100%;
    height: 160px;
}
.news-list-thumbnail > img {
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width:428px){
    .news-list-thumbnail {
        height: 185px;
    }
}

/* テキスト */
.news-list-text {
    width: 100%;
    padding: 15px 20px;
}

.news-list-about {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width:428px){
    .news-list-title {
        font-size: 16px;
    }
}

/* ---------- カテゴリ ---------- */
.news-category-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 0;
}
.news-category-wrapper form,
.news-category-wrapper ul {
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}
.news-category-wrapper form button[type="submit"],
.news-category-wrapper ul li a {
    padding: 5px 20px;
    flex-shrink: 0;
    background: #D9FDF9;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
}
.news-category-wrapper form button[type="submit"].current,
.news-category-wrapper ul li a.current {
    background: #17C1B0 !important;
    color: #FFF !important;
}

@media screen and (max-width:959px){
    .news-category-wrapper {
        width: 95%;
        padding: 10px 0 0;
    }
    .news-category-wrapper form,
    .news-category-wrapper ul {
        width: fit-content;
        flex-wrap: nowrap;
        overflow: auto;
    }
}

/* ---------- ページネーション ---------- */
ul.page-numbers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
ul.page-numbers > li {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #D9FDF9;
    border-radius: 50%;
    font-weight: 500;
    transition: opacity 0.2s;
}
ul.page-numbers > li:hover {
    opacity: 0.6;
}
ul.page-numbers > li:has(.current) {
    background: #17C1B0;
    color: #FFF;
    opacity: 1 !important;
}
ul.page-numbers > li:has(.next),
ul.page-numbers > li:has(.prev) {
    background: transparent;
}
ul.page-numbers > li > a {
    padding: 10px 12px;
}

.page-numbers.next,
.page-numbers.prev {
    position: relative;
}
.page-numbers.next::after,
.page-numbers.prev::after {
    content: "";
    width: 12px;
    height: 12px;
    position: absolute;
    top: calc(50% - 6px);
    right: calc(50% - 6px);
    border-top: 2px solid #17C1B0;
    border-right: 2px solid #17C1B0;
}
.page-numbers.next::after {
    transform: rotate(45deg);
}
.page-numbers.prev::after {
    transform: rotate(-135deg);
}

@media screen and (max-width:959px){
    .news-list {
        justify-content: center;
    }
    ul.page-numbers {
        gap: 10px;
    }
}



/**
 * #.# シングルページ
 *
 * 記事個別ページに適用するCSS。
 */

/* ---------- シングル（本文） ---------- */
/* 記事上部 タイトル日付カテゴリ */
.news-about {
    display: flex;
    flex-direction: column-reverse;
}

.news-title {
    margin: 10px 0;
    font-size: 30px;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.news-about-data {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}
@media screen and (max-width:768px){
.news-title {
    font-size: 18px;
}
}
/* 記事本文 */
.news-content {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    letter-spacing: 0.05rem;
    padding: 65px;
    background: #fff;
    border-radius: 30px;
    margin: 30px auto;
    box-shadow: 1px 2px 10px rgba(144, 144, 144, .2);
}
.news-content-thumbnail > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
@media screen and (max-width:768px){
    .news-content {
        padding: 25px;
    }
}

/* リンク 中央寄せアンダーライン */
.news-link-underline {
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 8px;
    position: relative;
    display: block;
    text-align: center;
}
.news-link-underline::after {
    content: "";
    width: 30px;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: calc(50% - 15px);
    display: block;
    background: #17C1B0;
}

/* ---------- 記事本文 レイアウト ---------- */
/* 見出し */
h3.has-background,
h4.has-background,
h5.has-background,
h6.has-background {
    padding: 15px !important;
}

/* リスト ドット */
.news-single-page ul {
    margin: 40px 0 40px 20px !important;
    padding-left: 10px;
    list-style-type: inherit;
    list-style-position: outside;
}
.news-single-page ul li {
    padding: 8px 0 !important;
}

/* リスト 数字 */
.news-single-page ol {
    margin: 40px 0 !important;
    list-style: none !important;
    counter-reset: number !important;
}
.news-single-page ol li {
    padding: 8px 0 8px 40px !important;
    position: relative !important;
}
.news-single-page ol li::before {
    counter-increment: number !important;
    content: '（' counter(number) '）' !important;
    position: absolute !important;
    left: 0 !important;
}

/* グループ */
.news-single-page .wp-block-group {
    margin: 10px 0 !important;
}

/* グループ 段落 */
.news-single-page .wp-block-group p {
    margin: 40px 0 !important;
}

/* グループ 段落内リンク */
.news-single-page .wp-block-group p a,
.news-single-page .wp-block-group ol a,
.news-single-page .wp-block-group ul a {
    color: #17C1B0;
    text-decoration: underline;
}

/* ボタン 背景ブルー文字ホワイト */
.button-blue {
    margin: 0 auto;
    color: #FFF !important;
    text-decoration: none !important;
}


/**
 * #.# 今月のキャンペーン
 *
 * page-campaignから流用
 */

/* ---------- キャンペーンコンテンツ レイアウト ---------- */
h3.campaign-title {
    margin: 20px auto 10px;
    text-align: center;
}

.campaign-contents {
    width: 100%;
    margin-top: -40px;
    margin-bottom: 60px;
    padding: 60px 0 80px;
}
/* 今月のキャンペーン */
.campaign-this-month {
    background: linear-gradient(
        to bottom,
        transparent 5%,
        #FEF7FA 10% 95%,
        transparent 100%
    );
}

/* タイトル画像 余白調整 */
.campaign-title-margintop {
    margin-top: 90px;
}

.campaign-this-month-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #FFF;
    border-radius: 40px;
    box-shadow: 3px 4px 5px rgba(144, 144, 144, .5) !important;
    overflow: hidden;
}
.campaign-this-month-link > img {
    width: 50%;
}
.campaign-this-month-link > .campaign-info-text {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.campaign-this-month-link > .campaign-info-text > .button-3d-blue {
    width: fit-content;
    margin: 0 auto;
}

@media screen and (max-width:768px){
    .campaign-contents {
        margin-bottom: 30px;
    }

    .campaign-this-month-link {
        max-width: 400px;
        flex-direction: column;
    }
    .campaign-this-month-link > img {
        width: 100%;
    }
    .campaign-this-month-link > .campaign-info-text {
        width: 100%;
        padding: 15px 20px 20px;
        gap: 15px;
    }
}

@media screen and (max-width:428px){
    .campaign-info-title {
        font-size: 16px;
    }
}
