@charset "UTF-8";

/* =========================================================
   公的・研究実績
   /agri/achievements/achievements.css
   ========================================================= */

#page_achievements {
    background: #f7faf8;
}

#page_achievements .content {
    padding-top: 58px;
    padding-bottom: 80px;
}

/* HEROの高さ・文字エリア幅は /agri/css/page.css で共通管理 */
.achievements-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #294c43 no-repeat center center / cover;
    background-position: 75% center; /* 追加 */
    color: #fff;
}
.achievements-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(9,35,30,.82) 0%, rgba(9,35,30,.64) 36%, rgba(9,35,30,.15) 64%, rgba(9,35,30,.04) 100%);
}
.achievements-hero__copy { color: #fff; }
.achievements-hero__eyebrow {
    margin: 0 0 15px;
    color: #e2e5d8;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: .2em;
}
.achievements-hero h1 {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .08em;
}
.achievements-hero__lead {
    margin: 0;
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 21px;
    line-height: 1.9;
    letter-spacing: .04em;
}
.achievements-pc-break { display: block; }

/* ---------------------------------------------------------
   共通セクション
   --------------------------------------------------------- */

.ach_section {
    margin-bottom: 64px;
}

.ach_section:last-child {
    margin-bottom: 0;
}

.ach_section_header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.ach_section_no {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #008159;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ach_section_header h1,
.ach_section_header h2 {
    margin: 0;
    color: #22332b;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
}

.ach_section_body {
    padding-left: 64px;
}


/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.ach_intro {
    max-width: 940px;
}

.ach_intro p {
    margin: 0 0 12px;
    color: #475950;
    font-size: 15px;
    line-height: 1.95;
}

.ach_intro p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   CATEGORY
   --------------------------------------------------------- */

.ach_category_nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.ach_category_nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px 18px;
    border: 1px solid #d5e2db;
    border-radius: 8px;
    background: #fff;
    color: #2b4035;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.ach_category_nav a:hover,
.ach_category_nav a.active {
    border-color: #8fc9a8;
    background: #eef8f2;
    transform: translateY(-2px);
}

.ach_category_nav span {
    font-size: 14px;
    font-weight: 700;
}

.ach_category_nav strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: #008159;
    color: #fff;
    font-size: 13px;
}


/* ---------------------------------------------------------
   LIST
   --------------------------------------------------------- */

.ach_list {
    display: grid;
    gap: 20px;
}

.ach_card {
    padding: 30px 32px 28px;
    border: 1px solid #d8e3dd;
    border-left: 5px solid #008159;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 69, 47, .05);
}

.ach_card_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
}

.ach_card_year,
.ach_card_category,
.ach_card_status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.ach_card_year {
    background: #087fd5;
    color: #fff;
}

.ach_card_category {
    background: #e8f5ed;
    color: #087f5b;
}

.ach_card_status {
    background: #f0f2f1;
    color: #59675f;
}

.ach_card_title {
    margin: 0 0 19px;
    color: #18392b;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.55;
}

.ach_card_info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 22px;
    border-top: 1px solid #e2e8e4;
    border-left: 1px solid #e2e8e4;
}

.ach_card_info > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    border-right: 1px solid #e2e8e4;
    border-bottom: 1px solid #e2e8e4;
}

.ach_card_info dt,
.ach_card_info dd {
    margin: 0;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.65;
}

.ach_card_info dt {
    background: #f4f8f5;
    color: #3e5348;
    font-weight: 700;
}

.ach_card_info dd {
    color: #394b42;
}

.ach_card_summary {
    color: #465950;
    font-size: 14px;
    line-height: 1.9;
}

.ach_card_link {
    margin-top: 22px;
}

.ach_card_link a {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #008159;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ach_card_link a span {
    font-size: 20px;
    line-height: 1;
}

.ach_empty {
    padding: 42px 24px;
    border: 1px solid #dce5e0;
    border-radius: 8px;
    background: #fff;
    color: #66766e;
    font-size: 14px;
    text-align: center;
}


/* ---------------------------------------------------------
   NOTE
   --------------------------------------------------------- */

.ach_note_box {
    padding: 24px 26px;
    border: 1px solid #d8e4dd;
    border-radius: 8px;
    background: #fff;
}

.ach_note_box p {
    margin: 0 0 7px;
    color: #53655b;
    font-size: 13px;
    line-height: 1.8;
}

.ach_note_box p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   900px以下
   ========================================================= */

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

    .ach_category_nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ach_card_info {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   600px以下
   ========================================================= */

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

    #page_achievements .content {
        padding-top: 42px;
        padding-bottom: 60px;
    }

    .ach_section {
        margin-bottom: 48px;
    }

    .ach_section_header {
        gap: 11px;
        margin-bottom: 20px;
    }

    .ach_section_no {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .ach_section_header h1,
    .ach_section_header h2 {
        font-size: 22px;
    }

    .ach_section_body {
        padding-left: 0;
    }

    .ach_intro p {
        font-size: 13px;
        line-height: 1.85;
    }

    .ach_category_nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ach_category_nav a {
        min-height: 58px;
        padding: 11px 14px;
    }

    .ach_card {
        padding: 22px 18px 20px;
        border-left-width: 4px;
    }

    .ach_card_title {
        font-size: 19px;
        line-height: 1.55;
    }

    .ach_card_info {
        display: block;
        border: 0;
    }

    .ach_card_info > div {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #e2e8e4;
    }

    .ach_card_info dt,
    .ach_card_info dd {
        padding: 9px 11px;
        font-size: 12px;
    }

    .ach_card_summary {
        font-size: 13px;
        line-height: 1.85;
    }

    .ach_card_link a {
        width: 100%;
        justify-content: space-between;
    }

    .ach_note_box {
        padding: 19px 17px;
    }
}


/* =========================================================
   v2 可読性調整
   知的財産ページと並べても小さく見えないよう、
   本文・表・カテゴリー・実績カードの文字サイズと
   コントラストを強化。
   ========================================================= */

.ach_section_header h1,
.ach_section_header h2 {
    color: #172b22;
    font-size: 34px;
    font-weight: 800;
}

.ach_intro {
    max-width: 1020px;
}

.ach_intro p {
    color: #344940;
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
}

.ach_category_nav a {
    min-height: 78px;
    padding: 16px 20px;
}

.ach_category_nav span {
    color: #22382d;
    font-size: 15px;
    font-weight: 800;
}

.ach_category_nav strong {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
}

.ach_card {
    padding: 34px 36px 32px;
}

.ach_card_year,
.ach_card_category,
.ach_card_status {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 12px;
}

.ach_card_title {
    margin-bottom: 22px;
    color: #102f21;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.55;
}

.ach_card_info dt,
.ach_card_info dd {
    padding: 13px 15px;
    font-size: 15px;
    line-height: 1.7;
}

.ach_card_info dt {
    color: #2e473a;
    font-weight: 800;
}

.ach_card_info dd {
    color: #293f34;
    font-weight: 500;
}

.ach_card_summary {
    color: #334a3e;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.95;
}

.ach_card_link a {
    min-height: 48px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 800;
}

.ach_empty {
    color: #485d52;
    font-size: 15px;
}

.ach_note_box p {
    color: #3e5549;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

@media screen and (max-width: 900px) {
    .ach_section_header h1,
    .ach_section_header h2 {
        font-size: 30px;
    }

    .ach_intro p {
        font-size: 16px;
    }
}

@media screen and (max-width: 600px) {
    .ach_section_header h1,
    .ach_section_header h2 {
        font-size: 24px;
    }

    .ach_intro p {
        font-size: 14px;
        line-height: 1.9;
    }

    .ach_category_nav span {
        font-size: 14px;
    }

    .ach_card {
        padding: 24px 19px 22px;
    }

    .ach_card_title {
        font-size: 21px;
    }

    .ach_card_info dt,
    .ach_card_info dd {
        padding: 10px 12px;
        font-size: 13px;
    }

    .ach_card_summary {
        font-size: 14px;
        line-height: 1.9;
    }

    .ach_note_box p {
        font-size: 13px;
    }
}


/* =========================================================
   v4 可読性・表示統一
   ・知的財産ページと同程度の文字サイズ感
   ・4項目を常時表示
   ・項目ラベルの不自然な折り返し防止
   ========================================================= */

.ach-nowrap {
    white-space: nowrap;
}

.ach_section_header h1,
.ach_section_header h2 {
    color: #172b22;
    font-size: 34px;
    font-weight: 800;
}

.ach_intro {
    max-width: 1020px;
}

.ach_intro p {
    color: #344940;
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
}

.ach_category_nav a {
    min-height: 78px;
    padding: 16px 20px;
}

.ach_category_nav span {
    color: #22382d;
    font-size: 16px;
    font-weight: 800;
}

.ach_category_nav strong {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
}

.ach_card {
    padding: 34px 36px 32px;
}

.ach_card_year,
.ach_card_category,
.ach_card_status {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 12px;
}

.ach_card_title {
    margin-bottom: 22px;
    color: #102f21;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.55;
}

.ach_card_info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ach_card_info > div {
    grid-template-columns: 175px minmax(0, 1fr);
}

.ach_card_info dt,
.ach_card_info dd {
    padding: 13px 15px;
    font-size: 16px;
    line-height: 1.75;
}

.ach_card_info dt {
    color: #213a2e;
    font-weight: 800;
}

.ach_card_info dd {
    color: #263d32;
    font-weight: 500;
}

.ach_card_summary {
    color: #263f33;
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    word-break: normal;
    line-break: strict;
    overflow-wrap: normal;
}

.ach_card_link a {
    min-height: 48px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 800;
}

.ach_empty {
    color: #485d52;
    font-size: 15px;
}

.ach_note_box {
    padding: 27px 30px;
}

.ach_note_box p {
    color: #2e473b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.95;
}

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

    .ach_section_header h1,
    .ach_section_header h2 {
        font-size: 30px;
    }

    .ach_intro p {
        font-size: 16px;
    }

    .ach_card_info {
        grid-template-columns: 1fr;
    }

    .ach_card_info > div {
        grid-template-columns: 175px minmax(0, 1fr);
    }
}

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

    .ach_section_header h1,
    .ach_section_header h2 {
        font-size: 24px;
    }

    .ach_intro p {
        font-size: 14px;
        line-height: 1.9;
    }

    .ach_category_nav span {
        font-size: 14px;
    }

    .ach_card {
        padding: 24px 19px 22px;
    }

    .ach_card_title {
        font-size: 21px;
    }

    .ach_card_info > div {
        display: block;
    }

    .ach_card_info dt,
    .ach_card_info dd {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.75;
    }

    .ach_card_summary {
        font-size: 14px;
        line-height: 1.9;
    }

    .ach_note_box {
        padding: 20px 18px;
    }

    .ach_note_box p {
        font-size: 14px;
        line-height: 1.9;
    }
}

/* =========================================================
   カテゴリー選択後：実績一覧へのアンカー位置調整
   ========================================================= */

#ach_list {
    scroll-margin-top: 190px;
}

@media screen and (max-width: 980px) {
    #ach_list {
        scroll-margin-top: 140px;
    }
}

/* =========================================================
   v5 カテゴリー5分類対応
   「すべて」+ 5カテゴリー = 6カード
   ========================================================= */

@media screen and (min-width: 1101px) {

    .ach_category_nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }

    .ach_category_nav a {
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
    }

    .ach_category_nav span {
        white-space: nowrap;
    }
}

@media screen and (min-width: 901px) and (max-width: 1100px) {

    .ach_category_nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   v6 実績カテゴリー / ステータス表示 最終調整
   ========================================================= */


/* ---------------------------------------------------------
   実績カテゴリー
   農林水産省関連に少し広めの幅を確保
   --------------------------------------------------------- */

@media screen and (min-width: 1281px) {

    .ach_category_nav {
        grid-template-columns:
            .92fr
            1fr
            1.12fr
            1.35fr
            .95fr
            .95fr;
        gap: 10px;
    }

    .ach_category_nav a {
        min-width: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .ach_category_nav span {
        white-space: nowrap;
    }
}


/* 1280px以下は無理に6枚並べず、3列にする */

@media screen and (min-width: 901px) and (max-width: 1280px) {

    .ach_category_nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------
   実績ステータス
   --------------------------------------------------------- */

.ach_card_status {
    border: 1px solid transparent;
}


/* 実施中：進行中であることが分かる暖色系 */

.ach_card_status--active {
    border-color: #efc36d;
    background: #fff2d9;
    color: #9a5a00;
}


/* 完了：落ち着いたグレー系 */

.ach_card_status--completed {
    border-color: #d6dfda;
    background: #eef2f0;
    color: #59675f;
}

/* =========================================================
   v8 事業・研究名称の手動改行対応
   改行はPHP側で <br> に変換。
   ========================================================= */



/* パンくずから本文までの余白 */
#page_achievements { border-top: 0; }
#pankuzu.agri-breadcrumb + #page_achievements > article {
    margin-top: 0;
    padding-top: 24px;
}
#page_achievements > article > .content { padding-top: 0; }
@media screen and (max-width: 767px) {
    .achievements-hero { background-position: 68% center; }
    .achievements-hero__shade {
        background: linear-gradient(90deg, rgba(9,35,30,.78), rgba(9,35,30,.56) 56%, rgba(9,35,30,.16));
    }
    .achievements-hero__eyebrow { font-size: 12px; letter-spacing: .15em; }
    .achievements-hero h1 {
        font-size: clamp(24px, 7vw, 28px);
        letter-spacing: .04em;
    }
    .achievements-hero__lead { font-size: 18px; }
    .achievements-pc-break { display: none; }
    #pankuzu.agri-breadcrumb + #page_achievements > article { padding-top: 20px; }
}

/* パンくずの背景を本文と同じ薄い緑で全幅に表示 */
#pankuzu.agri-breadcrumb {
    background: #f7faf8;
    box-shadow: 0 0 0 100vmax #f7faf8;
    clip-path: inset(0 -100vmax);
}
