/* =========================================================
   NEWS MICRO CMS
   完全版レスポンシブCSS
   design.png ベース
   スマホ〜PC対応
========================================================= */

/* ---------------------------------------------------------
   RESET / BASE
--------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        YuGothic,
        Meiryo,
        sans-serif;

    color: #333;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   iframe 埋め込み用
   top-umekomi.php
========================================================= */

.embed-body {
    margin: 0;
    padding: 0;
    background: transparent;
}

.embed-news {
    width: 100%;
    margin: 0 auto;

}


/* 1行 */
.embed-row {
    display: grid;

    /* 日付 / お知らせ / タイトル */
    grid-template-columns:
        clamp(100px, 14vw, 180px)
        clamp(80px, 9vw, 110px)
        minmax(0, 1fr);

    align-items: center;

    column-gap: clamp(15px, 3vw, 45px);

    width: 100%;

    padding:
        clamp(15px, 2vw, 24px)
        clamp(10px, 2vw, 30px);

    border-bottom: 1px solid #d9ddd5;

    color: #333;

    line-height: 1.6;

    transition:
        background-color .25s ease,
        color .25s ease;
}

.embed-row:last-child {
    border-bottom: none;
}


/* 日付 */
.news-date {
    display: block;

    color: #555;

    font-family: "Jost", sans-serif;

    font-size: clamp(.82rem, 1.2vw, 1rem);

    font-weight: 400;

    letter-spacing: .04em;

    white-space: nowrap;
}


/* お知らせラベル */
.news-category {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 110px;

    padding: 4px 10px;

    color: #fff;

    background-color: #6c9330;

    font-size: clamp(.72rem, 1vw, .9rem);

    line-height: 1.3;

    border-radius: 5px;

    white-space: nowrap;
}


/* タイトル */
.news-title-text {
    display: block;

    min-width: 0;

    color: #333;

    font-size: clamp(.88rem, 1.4vw, 1.05rem);

    line-height: 1.7;

    overflow-wrap: anywhere;
}


/* hover */
@media (hover: hover) {

    .embed-row:hover {
        background-color: #f7f9f4;
    }

    .embed-row:hover .news-title-text {
        color: #6c9330;
    }
}


/* ニュースなし */
.empty {
    margin: 0;
    padding: 24px 15px;

    color: #777;

    text-align: center;
}


/* =========================================================
   NEWS 一覧・詳細ページ
   news.php
========================================================= */

.news-page-body {
    margin: 0;
    background-color: #fff;
}

.news-page {
    width: min(1500px, 94%);

    margin: 0 auto;

    padding:
        clamp(50px, 7vw, 100px)
        0
        clamp(70px, 10vw, 140px);
}


/* NEWSタイトル */
.news-page > h1 {
    margin:
        0
        0
        clamp(50px, 7vw, 100px);

    color: #487109;

    font-family: "Jost", sans-serif;

    font-size: clamp(1.12rem, 2.8vw, 2rem);

    font-weight: 500;

    line-height: 1;

    letter-spacing: .2em;

    text-align: center;
}


/* =========================================================
   NEWS 一覧
========================================================= */

.news-list-page {
    width: 100%;

    border-top: 2px solid #6c9330;
    border-bottom: 2px solid #6c9330;
}


/* 各ニュース */
.list-card {
    display: grid;

    grid-template-columns:
        clamp(100px, 14vw, 180px)
        clamp(80px, 9vw, 110px)
        minmax(0, 1fr);

    align-items: center;

    column-gap: clamp(15px, 3vw, 45px);

    width: 100%;

    padding:
        clamp(16px, 2vw, 26px)
        clamp(10px, 2vw, 30px);

    border-bottom: 1px solid #d9ddd5;

    transition:
        background-color .25s ease,
        color .25s ease;
}

.list-card:last-child {
    border-bottom: none;
}


/* 日付 */
.list-date {
    color: #555;

    font-family: "Jost", sans-serif;

    font-size: clamp(.82rem, 1.2vw, 1rem);

    white-space: nowrap;
}


/* お知らせラベル */
.list-category {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 110px;

    padding: 4px 10px;

    color: #fff;

    background-color: #6c9330;

    font-size: clamp(.72rem, 1vw, .9rem);

    border-radius: 5px;

    white-space: nowrap;
}


/* 一覧タイトル */
.list-card h2 {
    margin: 0 0 5px;

    color: #333;

    font-size: clamp(.95rem, 1.5vw, 1.1rem);

    font-weight: 500;

    line-height: 1.6;
}


/* 概要文 */
.list-card p {
    margin: 0;

    color: #666;

    font-size: clamp(.8rem, 1.2vw, .95rem);

    line-height: 1.7;
}

@media (hover: hover) {

    .list-card:hover {
        background-color: #f7f9f4;
    }

    .list-card:hover h2 {
        color: #6c9330;
    }
}


/* =========================================================
   NEWS 詳細
========================================================= */

.news-detail {
    width: 100%;

    padding:
        clamp(30px, 4vw, 50px)
        clamp(15px, 4vw, 50px);

    border-top: 2px solid #6c9330;
    border-bottom: 2px solid #6c9330;
}


/* 詳細日付 */
.detail-date {
    margin: 0 0 15px;

    color: #6c9330;

    font-family: "Jost", sans-serif;

    font-size: .95rem;

    letter-spacing: .05em;
}


/* 詳細タイトル */
.news-detail h2 {
    margin: 0 0 clamp(25px, 4vw, 40px);

    color: #333;

    font-size: clamp(1.25rem, 2.4vw, 1.7rem);

    font-weight: 500;

    line-height: 1.6;
}


/* 詳細本文 */
.detail-body {
    color: #444;

    font-size: clamp(.95rem, 1.4vw, 1rem);

    line-height: 2;

    overflow-wrap: anywhere;
}


/* =========================================================
   一覧へ戻るボタン
========================================================= */

.back {
    margin:
        clamp(40px, 6vw, 70px)
        0
        0;

    text-align: center;
}

.back a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 170px;

    min-height: 64px;

    padding: 12px 28px;

    color: #333;

    background-color: #fff;

    border: 1px solid #444;

    border-radius: 0;

    font-size: 1rem;

    letter-spacing: .08em;

    box-shadow: 4px 5px 0 #c8d5d9;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

@media (hover: hover) {

    .back a:hover {
        transform: translate(2px, 2px);

        box-shadow: 2px 3px 0 #c8d5d9;

        background-color: #fafafa;
    }
}


/* =========================================================
   ページャー
========================================================= */

.pager {
    margin-top: 50px;

    text-align: center;
}

.pager a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 4px;

    color: #6c9330;

    border: 1px solid #6c9330;

    border-radius: 50%;

    font-size: .9rem;
}

.pager a.current {
    color: #fff;

    background-color: #6c9330;
}


/* =========================================================
   タブレット
   601px ～ 960px
========================================================= */

@media screen and (min-width: 601px) and (max-width: 960px) {

    .news-page {
        width: 92%;
    }

    .embed-row,
    .list-card {

        grid-template-columns:
            120px
            90px
            minmax(0, 1fr);

        column-gap: 18px;
    }

    .news-page > h1 {
        letter-spacing: .18em;
    }
}


/* =========================================================
   スマホ
   600px以下
========================================================= */

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

    .news-page {
        width: 92%;

        padding-top: 45px;
    }


    /* NEWS */
    .news-page > h1 {
        margin-bottom: 45px;

        font-size: clamp(.88rem, 4.8vw, 1.2rem);

        letter-spacing: .15em;
    }


    /* iframeニュース */
    .embed-row {
        grid-template-columns:
            82px
            68px
            minmax(0, 1fr);

        column-gap: 8px;

        padding: 14px 5px;
    }

    .news-date {
        font-size: .72rem;
    }

    .news-category {
        padding: 3px 3px;

        font-size: .65rem;

        border-radius: 4px;
    }

    .news-title-text {
        font-size: .8rem;

        line-height: 1.5;
    }


    /* 一覧ページ */
    .list-card {
        grid-template-columns:
            82px
            68px
            minmax(0, 1fr);

        column-gap: 8px;

        padding: 16px 5px;
    }

    .list-date {
        font-size: .72rem;
    }

    .list-category {
        padding: 3px 3px;

        font-size: .65rem;

        border-radius: 4px;
    }

    .list-card h2 {
        font-size: .85rem;

        line-height: 1.5;
    }

    .list-card p {
        display: none;
    }


    /* 詳細 */
    .news-detail {
        padding:
            25px
            12px;
    }

    .detail-date {
        font-size: .85rem;
    }

    .news-detail h2 {
        font-size: 1.2rem;
    }

    .detail-body {
        font-size: .93rem;

        line-height: 1.9;
    }


    /* ボタン */
    .back a {
        min-width: 150px;

        min-height: 58px;

        font-size: .9rem;
    }
}


/* =========================================================
   小さいスマホ
   400px以下
========================================================= */

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

    .embed-row,
    .list-card {

        grid-template-columns:
            70px
            58px
            minmax(0, 1fr);

        column-gap: 5px;
    }

    .news-date,
    .list-date {
        font-size: .65rem;

        letter-spacing: 0;
    }

    .news-category,
    .list-category {
        font-size: .6rem;

        padding: 3px 2px;
    }

    .news-title-text,
    .list-card h2 {
        font-size: .75rem;
    }
}


/* =========================================================
   既存サイト側「一覧へ →」ボタン
   ※この部分は iframe 外の親ページCSSにも同じ内容を入れてください
========================================================= */

.news_list {
    width: 170px;
    height: 64px;

    margin: 0 auto 80px auto;

    padding: 0;

    color: #333;

    background-color: #fff;

    border: 1px solid #444;

    border-radius: 0;

    box-shadow: 4px 5px 0 #c8d5d9;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.news_list a {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #333;

    font-size: 1em;

    letter-spacing: .1em;

    text-decoration: none;
}

@media (hover: hover) {

    .news_list:hover {
        background-color: #fff;

        transform: translate(2px, 2px);

        box-shadow: 2px 3px 0 #c8d5d9;
    }
}

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

    .news_list {
        width: 150px;
        height: 58px;
    }

    .news_list a {
        font-size: .9em;
    }
}


/* =========================================================
   横幅調整
========================================================= */

/* TOPページ iframe内：タイトルをPC/タブレットで1行表示 */
@media screen and (min-width: 601px) {
    .embed-row .news-title-text {
        width: 100%;
        max-width: none;

        /* 改行しない */
        white-space: nowrap;

        /* 全文表示 */
        overflow: visible;
        text-overflow: clip;

        overflow-wrap: normal;
        word-break: keep-all;
    }
}

/* news.php 一覧
   現在のPHPは「日付 + タイトル/本文div」の2カラム構造 */
.news-list-page .list-card {
    grid-template-columns: clamp(120px, 14vw, 180px) minmax(0, 1fr);
    column-gap: clamp(30px, 4vw, 70px);
}

.news-list-page .list-card > div {
    width: 100%;
    min-width: 0;
}

.news-list-page .list-card h2,
.news-list-page .list-card p {
    width: 100%;
    max-width: none;
}

/* news.php 詳細：タイトル・本文を広く */
.news-detail {
    width: 100%;
    max-width: none;
}

.news-detail h2,
.news-detail .detail-body {
    width: 100%;
    max-width: none;
}

@media screen and (min-width: 601px) and (max-width: 960px) {
    .news-list-page .list-card {
        grid-template-columns: 130px minmax(0, 1fr);
        column-gap: 30px;
    }
}

@media screen and (max-width: 600px) {
    .embed-row .news-title-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .news-list-page .list-card {
        grid-template-columns: 82px minmax(0, 1fr);
        column-gap: 14px;
    }
}

@media screen and (max-width: 400px) {
    .news-list-page .list-card {
        grid-template-columns: 70px minmax(0, 1fr);
        column-gap: 8px;
    }
}
@media screen and (max-width: 600px) {

    /* NEWS 1行 */
    .embed-row {
        display: grid;

        /* 日付 + タイトル */
        grid-template-columns: 145px minmax(0, 1fr) !important;

        column-gap: 15px !important;

        width: 100%;

        padding: 35px 10px !important;

        align-items: center;
    }


    /* 日付 */
    .news-date {
        width: auto !important;

        font-size: 1em !important;

        white-space: nowrap !important;
    }


    /* お知らせラベルはスマホでは非表示 */
    .news-category {
        display: none !important;
    }


    /* タイトル */
    .news-title-text {
        display: block;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        font-size: 1em !important;

        line-height: 1.5;

        /* 絶対に改行しない */
        white-space: nowrap !important;

        /* …にしない */
        overflow: visible !important;
        text-overflow: clip !important;

        overflow-wrap: normal !important;
        word-break: keep-all !important;
    }
