/* =========================================================
   ポスターコンクール年度ページ
   重複タイトルを非表示・年度と回数を強調
========================================================= */

body.single-poster_contest .poster-contest-detail__title {
    display: none !important;
}

body.single-poster_contest .poster-contest-detail__header {
    padding-top: 10px !important;
    padding-bottom: 34px !important;
    text-align: center !important;
}

body.single-poster_contest .poster-contest-detail__year {
    margin: 0 0 10px !important;

    color: #0875c9 !important;

    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

body.single-poster_contest .poster-contest-detail__number {
    display: inline-block !important;

    margin: 0 !important;
    padding: 7px 15px !important;

    border-radius: 2px !important;

    background: #eef6fb !important;
    color: #29465e !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}


/* =========================================================
   各部門の連名賞表
========================================================= */

body.single-poster_contest .akarui-pce-table {
    width: 100%;
    margin: 38px 0 64px;
}

body.single-poster_contest .akarui-pce-table__title {
    margin: 0 0 14px !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
    color: #073b68 !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

body.single-poster_contest .akarui-pce-table__scroll {
    width: 100%;
    overflow-x: auto;
}

body.single-poster_contest .akarui-pce-table table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;
    table-layout: fixed;

    background: #fff;
}

body.single-poster_contest .akarui-pce-table th,
body.single-poster_contest .akarui-pce-table td {
    border: 1px solid #ccdce7;

    padding: 11px 12px;

    color: #29465e;

    font-size: 13px;
    line-height: 1.65;

    vertical-align: middle;
}

body.single-poster_contest .akarui-pce-table th {
    background: #eef7fc;

    color: #073b68;

    font-weight: 700;
    text-align: center;
}

body.single-poster_contest .akarui-pce-table th:nth-child(1),
body.single-poster_contest .akarui-pce-table td:nth-child(1) {
    width: 16%;
}

body.single-poster_contest .akarui-pce-table th:nth-child(2),
body.single-poster_contest .akarui-pce-table td:nth-child(2) {
    width: 49%;
}

body.single-poster_contest .akarui-pce-table th:nth-child(3),
body.single-poster_contest .akarui-pce-table td:nth-child(3) {
    width: 10%;
    text-align: center;
}

body.single-poster_contest .akarui-pce-table th:nth-child(4),
body.single-poster_contest .akarui-pce-table td:nth-child(4) {
    width: 25%;
}


/* =========================================================
   スマホ：1名ずつカード表示
========================================================= */

@media (max-width: 767px) {

    body.single-poster_contest .poster-contest-detail__header {
        padding-bottom: 26px !important;
    }

    body.single-poster_contest .poster-contest-detail__year {
        font-size: 24px !important;
    }

    body.single-poster_contest .poster-contest-detail__number {
        font-size: 16px !important;
    }

    body.single-poster_contest .akarui-pce-table {
        margin: 30px 0 48px;
    }

    body.single-poster_contest .akarui-pce-table__title {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    body.single-poster_contest .akarui-pce-table__scroll {
        overflow: visible;
    }

    body.single-poster_contest .akarui-pce-table table,
    body.single-poster_contest .akarui-pce-table tbody,
    body.single-poster_contest .akarui-pce-table tr,
    body.single-poster_contest .akarui-pce-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.single-poster_contest .akarui-pce-table thead {
        display: none;
    }

    body.single-poster_contest .akarui-pce-table tr {
        margin-bottom: 14px;

        border: 1px solid #d7e5ef;

        background: #fff;
    }

    body.single-poster_contest .akarui-pce-table td {
        display: grid;

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

        gap: 10px;

        padding: 9px 12px;

        border: 0;
        border-bottom: 1px solid #edf2f6;

        text-align: left !important;
    }

    body.single-poster_contest .akarui-pce-table td:last-child {
        border-bottom: 0;
    }

    body.single-poster_contest .akarui-pce-table td::before {
        content: attr(data-label);

        color: #52697c;

        font-size: 12px;
        font-weight: 700;
    }
}


/* =========================================================
   v1.1.3
   年度ページ：開催概要見出し
========================================================= */

/* 英語の OVERVIEW は表示しない */
body.single-poster_contest
.poster-contest-overview
.poster-contest-section-heading > p {
    display: none !important;
}

/* 開催概要見出しを日本語だけで表示 */
body.single-poster_contest
.poster-contest-overview
.poster-contest-section-heading h2 {
    margin: 0 !important;

    color: #073b68 !important;

    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* 見出し下の余白を少し整理 */
body.single-poster_contest
.poster-contest-overview
.poster-contest-section-heading {
    margin-bottom: 26px !important;
}


/* =========================================================
   v1.2.0
   年度・回数を縦に整える
========================================================= */

body.single-poster_contest .poster-contest-detail__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

body.single-poster_contest .poster-contest-detail__year,
body.single-poster_contest .poster-contest-detail__number {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

body.single-poster_contest .poster-contest-detail__year {
    font-size: 30px !important;
}

body.single-poster_contest .poster-contest-detail__number {
    font-size: 17px !important;
}


/* =========================================================
   文部科学大臣・総務大臣賞
   各カードの賞ラベルを消し、部門内で見出しを1回だけ表示
========================================================= */

body.single-poster_contest .poster-award-card__prize {
    display: none !important;
}

body.single-poster_contest .akarui-pce-prize-heading {
    margin: 0 0 18px !important;
    padding: 0 0 10px !important;

    border: 0 !important;
    border-bottom: 1px solid #c9dbe8 !important;

    background: transparent !important;
    color: #073b68 !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}


/* =========================================================
   連名賞表
   1つの表の中で2名分を横並び
========================================================= */

body.single-poster_contest
.akarui-pce-table__two-up {
    min-width: 0 !important;
    table-layout: fixed !important;
}

body.single-poster_contest
.akarui-pce-table__two-up th,
body.single-poster_contest
.akarui-pce-table__two-up td {
    padding: 8px 9px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(1),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(1),
body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(5),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(5) {
    width: 11% !important;
}

body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(2),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(2),
body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(6),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(6) {
    width: 24% !important;
}

body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(3),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(3),
body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(7),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(7) {
    width: 6% !important;
    text-align: center !important;
}

body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(4),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(4),
body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(8),
body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(8) {
    width: 9% !important;
}

body.single-poster_contest
.akarui-pce-table__two-up td:nth-child(4),
body.single-poster_contest
.akarui-pce-table__two-up th:nth-child(4) {
    border-right-width: 3px !important;
    border-right-color: #b8cfdf !important;
}

body.single-poster_contest
.akarui-pce-table__two-up .is-empty {
    background: #fbfdfe !important;
}


/* =========================================================
   最下部の前年度・次年度ナビを削除
========================================================= */

body.single-poster_contest .poster-contest-year-nav {
    display: none !important;
}


/* =========================================================
   スマホ
   2列表は1名ずつカード表示に戻す
========================================================= */

@media (max-width: 767px) {

    body.single-poster_contest
    .akarui-pce-table__two-up {
        min-width: 0 !important;
    }

    body.single-poster_contest
    .akarui-pce-table__two-up thead {
        display: none !important;
    }

    body.single-poster_contest
    .akarui-pce-table__two-up tr {
        display: block !important;
        margin-bottom: 18px !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.single-poster_contest
    .akarui-pce-table__two-up td {
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr) !important;
        width: 100% !important;
        padding: 9px 12px !important;
        border: 1px solid #e2ebf1 !important;
        border-bottom: 0 !important;
        background: #fff !important;
    }

    body.single-poster_contest
    .akarui-pce-table__two-up td:nth-child(4),
    body.single-poster_contest
    .akarui-pce-table__two-up td:nth-child(8) {
        margin-bottom: 12px !important;
        border-right-width: 1px !important;
        border-bottom: 1px solid #e2ebf1 !important;
    }

    body.single-poster_contest
    .akarui-pce-table__two-up td.is-empty {
        display: none !important;
    }

    body.single-poster_contest .poster-contest-detail__year {
        font-size: 24px !important;
    }
}


/* =========================================================
   v1.3.0
   連名賞一覧：2つの表に分割
========================================================= */

body.single-poster_contest .akarui-pce-split-tables {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 30px !important;

    width: 100% !important;
}

body.single-poster_contest .akarui-pce-split-tables__item {
    min-width: 0 !important;
}

body.single-poster_contest .akarui-pce-split-table {
    width: 100% !important;
    min-width: 0 !important;

    table-layout: fixed !important;
    border-collapse: collapse !important;

    background: #fff !important;
}

body.single-poster_contest .akarui-pce-split-table th,
body.single-poster_contest .akarui-pce-split-table td {
    padding: 8px 9px !important;

    border: 1px solid #ccdce7 !important;

    font-size: 12px !important;
    line-height: 1.5 !important;

    vertical-align: middle !important;
}

body.single-poster_contest .akarui-pce-split-table th {
    background: #eef7fc !important;
    color: #073b68 !important;

    font-weight: 700 !important;
    text-align: center !important;
}

body.single-poster_contest .akarui-pce-split-table th:nth-child(1),
body.single-poster_contest .akarui-pce-split-table td:nth-child(1) {
    width: 18% !important;
}

body.single-poster_contest .akarui-pce-split-table th:nth-child(2),
body.single-poster_contest .akarui-pce-split-table td:nth-child(2) {
    width: 47% !important;
}

body.single-poster_contest .akarui-pce-split-table th:nth-child(3),
body.single-poster_contest .akarui-pce-split-table td:nth-child(3) {
    width: 12% !important;
    text-align: center !important;
}

body.single-poster_contest .akarui-pce-split-table th:nth-child(4),
body.single-poster_contest .akarui-pce-split-table td:nth-child(4) {
    width: 23% !important;
}


/* =========================================================
   賞見出し
   「文部科学大臣・総務大臣賞」と「連名賞」を統一
========================================================= */

body.single-poster_contest .akarui-pce-prize-heading,
body.single-poster_contest .akarui-pce-table__title {
    display: block !important;

    width: 100% !important;

    margin: 0 0 18px !important;
    padding: 0 0 10px !important;

    border: 0 !important;
    border-bottom: 1px solid #c9dbe8 !important;

    background: transparent !important;
    color: #073b68 !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   英語見出しを完全に非表示
========================================================= */

body.single-poster_contest .poster-awards-heading__en,
body.single-poster_contest .poster-contest-section-heading > p,
body.single-poster_contest .poster-contest-section-heading p,
body.single-poster_contest .poster-awards-heading > p {
    display: none !important;
}


/* =========================================================
   ページ送り・次の記事・前の記事を非表示
========================================================= */

body.single-poster_contest .poster-contest-year-nav,
body.single-poster_contest .vk_posts.next-prev,
body.single-poster_contest .next-prev,
body.single-poster_contest .postNextPrev,
body.single-poster_contest .post-next-prev,
body.single-poster_contest .vk_posts,
body.single-poster_contest .veu_postList,
body.single-poster_contest .veu_postListItem,
body.single-poster_contest .navigation.post-navigation,
body.single-poster_contest nav.post-navigation {
    display: none !important;
}


/* =========================================================
   スマホ
========================================================= */

@media (max-width: 767px) {

    body.single-poster_contest .akarui-pce-split-tables {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.single-poster_contest .akarui-pce-split-table,
    body.single-poster_contest .akarui-pce-split-table tbody,
    body.single-poster_contest .akarui-pce-split-table tr,
    body.single-poster_contest .akarui-pce-split-table td {
        display: block !important;
        width: 100% !important;
    }

    body.single-poster_contest .akarui-pce-split-table thead {
        display: none !important;
    }

    body.single-poster_contest .akarui-pce-split-table tr {
        margin-bottom: 12px !important;
        border: 1px solid #d7e5ef !important;
        background: #fff !important;
    }

    body.single-poster_contest .akarui-pce-split-table td {
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr) !important;

        gap: 10px !important;

        padding: 9px 12px !important;

        border: 0 !important;
        border-bottom: 1px solid #edf2f6 !important;

        text-align: left !important;
    }

    body.single-poster_contest .akarui-pce-split-table td:last-child {
        border-bottom: 0 !important;
    }

    body.single-poster_contest .akarui-pce-split-table td::before {
        content: attr(data-label);

        color: #52697c;

        font-size: 12px;
        font-weight: 700;
    }
}


/* =========================================================
   v1.3.1
   文部科学大臣・総務大臣賞カード
   文字情報下の余白を縮小
========================================================= */

body.single-poster_contest .poster-award-card {
    padding-bottom: 12px !important;
}

body.single-poster_contest .poster-award-card__body {
    min-height: 0 !important;
}

body.single-poster_contest .poster-award-card__name {
    margin-bottom: 6px !important;
}

body.single-poster_contest .poster-award-card__school {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* =========================================================
   連名賞表
   都道府県名・氏名を中央揃え
========================================================= */

body.single-poster_contest
.akarui-pce-split-table th:nth-child(1),
body.single-poster_contest
.akarui-pce-split-table td:nth-child(1),
body.single-poster_contest
.akarui-pce-split-table th:nth-child(4),
body.single-poster_contest
.akarui-pce-split-table td:nth-child(4) {
    text-align: center !important;
}


/* =========================================================
   v1.3.2
   受賞作品カード：氏名と学校名の間に短い青線
========================================================= */

body.single-poster_contest .poster-award-card__name {
    position: relative !important;

    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;

    gap: 5px !important;

    margin: 0 0 16px !important;
    padding: 0 0 14px !important;
}

body.single-poster_contest .poster-award-card__name::after {
    content: "" !important;

    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;

    width: 34px !important;
    height: 2px !important;

    background: #0875c9 !important;

    transform: translateX(-50%) !important;
}


/* 「さん」を氏名とベースラインで揃える */
body.single-poster_contest .poster-award-card__name span {
    display: inline-block !important;

    margin: 0 !important;

    line-height: 1 !important;
    vertical-align: baseline !important;
}


/* 線の下の学校名との間隔 */
body.single-poster_contest .poster-award-card__school {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================================
   v1.3.3
   氏名と学校名のちょうど中間に青線
   学校名下の余白をさらに縮小
========================================================= */

/*
 * 氏名側の下paddingで線位置を作るのではなく、
 * 氏名と学校名の間隔そのものの中央へ線を置く。
 */
body.single-poster_contest .poster-award-card__name {
    position: relative !important;

    margin: 0 0 14px !important;
    padding: 0 !important;
}

body.single-poster_contest .poster-award-card__name::after {
    content: "" !important;

    position: absolute !important;
    left: 50% !important;

    /*
     * 氏名の直下ではなく、
     * 氏名と学校名の間隔の中央へ配置
     */
    bottom: -8px !important;

    width: 34px !important;
    height: 2px !important;

    background: #0875c9 !important;

    transform: translateX(-50%) !important;
}


/* 学校名は線の下から自然につながるように */
body.single-poster_contest .poster-award-card__school {
    margin: 0 !important;
    padding: 0 !important;

    min-height: 0 !important;
}


/* カード下部の空きをさらに縮小 */
body.single-poster_contest .poster-award-card {
    padding-bottom: 6px !important;
}

body.single-poster_contest .poster-award-card__body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


/* =========================================================
   v1.3.4
   青い短線を氏名と学校名の「ちょうど中間」に固定
========================================================= */

body.single-poster_contest .poster-award-card__name {
    position: relative !important;

    /*
     * 氏名と学校名の間隔を16pxに固定。
     * 青線の中心を、その8px地点に置く。
     */
    margin: 0 0 16px !important;
    padding: 0 !important;
}

body.single-poster_contest .poster-award-card__name::after {
    content: "" !important;

    position: absolute !important;
    left: 50% !important;

    /*
     * 2px線の中心が、16px間隔の中央（8px）に来るよう設定。
     */
    top: calc(100% + 7px) !important;
    bottom: auto !important;

    width: 34px !important;
    height: 2px !important;

    background: #0875c9 !important;

    transform: translateX(-50%) !important;
}

body.single-poster_contest .poster-award-card__school {
    margin: 0 !important;
    padding: 0 !important;

    min-height: 0 !important;
}


/* =========================================================
   ページ内ナビ
   開催概要の直下へ配置
========================================================= */

body.single-poster_contest .poster-contest-detail__nav {
    margin-top: 28px !important;
    margin-bottom: 56px !important;
}

body.single-poster_contest
.poster-contest-overview + .poster-contest-detail__nav {
    margin-top: 28px !important;
}

@media (max-width: 767px) {

    body.single-poster_contest .poster-contest-detail__nav {
        margin-top: 22px !important;
        margin-bottom: 42px !important;
    }
}


/* =========================================================
   v1.3.5
   氏名と学校名の間の青線を削除
========================================================= */

body.single-poster_contest .poster-award-card__name::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   年度 + 回数
   「令和7年度（第77回）」を横一列・同一フォントで表示
========================================================= */

body.single-poster_contest .poster-contest-detail__header {
    display: block !important;
    text-align: center !important;
}

body.single-poster_contest .poster-contest-detail__year {
    display: inline !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #073b68 !important;

    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

body.single-poster_contest .poster-contest-detail__number {
    display: inline !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #073b68 !important;

    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

body.single-poster_contest .poster-contest-detail__number::before {
    content: "（" !important;
}

body.single-poster_contest .poster-contest-detail__number::after {
    content: "）" !important;
}

@media (max-width: 767px) {

    body.single-poster_contest .poster-contest-detail__year,
    body.single-poster_contest .poster-contest-detail__number {
        font-size: 23px !important;
    }
}


/* =========================================================
   v1.3.6
   ページ内ナビ：審査結果を削除し3部門のみ
========================================================= */

body.single-poster_contest .poster-contest-detail__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 767px) {

    body.single-poster_contest .poster-contest-detail__nav {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   v1.3.7
   開催概要の横幅を受賞作品と揃える
========================================================= */

body.single-poster_contest .poster-contest-overview {
    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 開催概要内の表・説明枠も親幅いっぱいに */
body.single-poster_contest .poster-contest-overview__table,
body.single-poster_contest .poster-overview-result-block {
    width: 100% !important;
    max-width: none !important;
}

/* 見出しも同じ横幅基準に統一 */
body.single-poster_contest
.poster-contest-overview
.poster-contest-section-heading {
    width: 100% !important;
    max-width: none !important;
}


/* =========================================================
   v1.3.8
   「令和7年度（第77回）」の上余白を拡大
========================================================= */

body.single-poster_contest .poster-contest-detail__header {
    padding-top: 42px !important;
}


/* =========================================================
   v1.3.9
   作品集の下：開催概要へ戻る横長ボタン
========================================================= */

body.single-poster_contest .akarui-pce-overview-return {
    width: 100% !important;

    margin: 32px 0 0 !important;
}

body.single-poster_contest .akarui-pce-overview-return__link {
    display: flex !important;

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

    width: 100% !important;
    min-height: 58px !important;

    padding: 14px 24px !important;

    border: 1px solid #0875c9 !important;
    border-radius: 3px !important;

    background: #ffffff !important;
    color: #0875c9 !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    text-align: center !important;
    text-decoration: none !important;

    box-sizing: border-box !important;

    transition:
        background-color .2s ease,
        color .2s ease !important;
}

body.single-poster_contest .akarui-pce-overview-return__link:hover {
    background: #0875c9 !important;
    color: #ffffff !important;
}

body.single-poster_contest #contest-overview {
    scroll-margin-top: 30px !important;
}

@media (max-width: 767px) {

    body.single-poster_contest .akarui-pce-overview-return {
        margin-top: 24px !important;
    }

    body.single-poster_contest .akarui-pce-overview-return__link {
        min-height: 54px !important;
        padding: 13px 18px !important;
        font-size: 14px !important;
    }
}


/* =========================================================
   v1.4.1
   作品集の下：左右2分割ボタン
========================================================= */

body.single-poster_contest .akarui-pce-overview-return {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 16px !important;

    width: 100% !important;

    margin-top: 32px !important;
}

body.single-poster_contest .akarui-pce-overview-return__link {
    width: 100% !important;
    min-width: 0 !important;

    min-height: 58px !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}

@media (max-width: 767px) {

    body.single-poster_contest .akarui-pce-overview-return {
        grid-template-columns: 1fr !important;

        gap: 12px !important;
    }
}
