@charset "utf-8";
/* ==========================================================================
   武蔵嵐山病院 おしらせプログラム（p-news）用スタイル
   ・body.pnFrame …… トップページのiframe内（php-news.php）
   ・.pnewsPage  …… 一覧ページ（i-news_list.php）
   ※iframe内のメディアクエリは「iframeの幅」で判定されます（画面全体の幅ではありません）
   ========================================================================== */

/* ---------- iframe内の土台 ---------- */
body.pnFrame {
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: #333;
    font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}
dl.pnItem,
.pnItem dt,
.pnItem dd {
    margin: 0;
}
body.pnFrame img {
    border: 0;
    vertical-align: middle;
}

/* ---------- おしらせ1件（トップ・一覧ページ共通） ---------- */
/* 並び：PC＝［日付］［カテゴリー］［NEW＋タイトル］の3ブロック
         SP＝［日付］［カテゴリー］［NEW］を横並び、その下に［タイトル］
   ※iframe内のメディアクエリは「iframeの幅」で判定されます */
.pnItem {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "date cat new"
        "title title title";
    align-items: center;
    margin: 0;
    padding: 15px 0;
    border-bottom: solid 1px #e5e5e5;
}
.pnTime {
    grid-area: date;
    margin-right: 10px;
    line-height: 1.5;
    white-space: nowrap;
}
.pnCat {
    grid-area: cat;
    margin-right: 10px;
    line-height: 1;
}
.pnCat:empty {
    display: none; /* カテゴリーなし：SPでは詰める */
}
.pnNew {
    grid-area: new;
    line-height: 1;
}
.pnTxt {
    grid-area: title;
    margin: 8px 0 0;
    line-height: 1.5;
}
.pnItem a {
    color: #333;
    text-decoration: none;
}
.pnItem a:hover {
    text-decoration: underline;
}
.pnTxt.pnHasFile a {
    padding-left: 24px;
    background: url("php-news/icons/icons_pdf.svg") no-repeat 0 0.15em;
    background-size: 18px;
}
.pnEmpty {
    margin: 0;
    padding: 22px 0;
    color: #666;
}

/* カテゴリーのラベル（管理画面の「カテゴリー管理」で作成。色は category_function.php の catColors()） */
.pnCatLabel {
    display: inline-block;
    width: 88px; /* 全カテゴリー同じ幅（名前の長さが違ってもガタつかない） */
    box-sizing: border-box;
    padding: 1px 4px;
    font-size: 12px;
    line-height: 18px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border-radius: 3px;
    vertical-align: middle;
}

/* ［NEW］　★管理画面（admin/css/style.css）と同じ見た目にしています。書き変えた時は両方とも直す */
.news-new-waku {
    font-size: 11px;
    line-height: 15px;
    font-weight: 500;
    color: #fff;
    background-color: #e60012;
    border: solid 1px #e60012;
    padding: 0 7px;
    display: inline-block;
}

/* 幅が広いとき：［日付］［カテゴリー］［NEW＋タイトル］の3ブロック */
@media screen and (min-width: 600px) {
.pnItem {
    grid-template-columns: 112px 128px 1fr;
    grid-template-rows: auto 1fr; /* カテゴリー名が2行になっても、タイトルは上にそろえる */
    grid-template-areas:
        "date cat new"
        "date cat title";
    align-items: start;
    padding: 22px 12px;
}
.pnTime {
    margin-right: 0;
    line-height: 1.7;
}
.pnCat,
.pnCat:empty {
    display: block; /* カテゴリーなしでも空欄として幅を確保（タイトルの位置をそろえる） */
    margin-right: 0;
    padding-right: 16px;
    line-height: 1.7;
}
.pnCatLabel {
    vertical-align: 1px;
}
.pnNew {
    margin-bottom: 6px;
}
.pnTxt {
    margin: 0;
    line-height: 1.7;
}
}

/* ---------- 一覧ページ（i-news_list.php） ---------- */
/* ページ見出し（見出し画像の代わりにテキストで表示） */
.pnewsHeading {
    background-color: #009944;
}
.pnewsHeading .pnewsTitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin: 0;
    color: #fff;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.pnewsPage .pnList {
    border-top: solid 1px #e5e5e5;
    font-size: 16px;
}
@media screen and (max-width: 767px) {
.pnewsHeading .pnewsTitle {
    font-size: 18px;
}
.pnewsPage {
    box-sizing: border-box;
    padding: 25px 4% 0;
}
}

/* ページネーション（i-news_list.phpで使う） */
.pagination_box {
    max-width: 700px;
    margin: 40px auto 0;
}
ul.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 0;
    list-style: none;
}
ul.pagination li {
    margin: 0;
    list-style: none;
}
ul.pagination li a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
ul.pagination .overPagerPattern {
    margin: 0 4px;
    color: #666;
}
li.page_num a {
    font-size: 18px;
    margin: 0 6px;
    width: 36px;
    height: 36px;
    color: #333;
}
li.page_pn a {
    width: 36px;
    height: 36px;
    color: #009944;
    background-color: #fff;
    border: solid 1px #009944;
    box-sizing: border-box;
}
/* 矢印（アイコンフォントを使わずCSSで表示） */
li.page_pn a i {
    font-style: normal;
    font-size: 15px;
    line-height: 1;
}
li.page_prev a i:before { content: "\2039"; }
li.page_next a i:before { content: "\203A"; }
li.page_prev_max a i:before { content: "\00AB"; }
li.page_next_max a i:before { content: "\00BB"; }
li.page_prev_max a,
li.page_prev a {
    margin-right: 8px;
}
li.page_next a,
li.page_next_max a {
    margin-left: 8px;
}
li.page_num a.pg_now {
    color: #fff;
    background-color: #009944;
    border-radius: 50%;
}
p.page_total {
    text-align: center;
    font-size: 14px;
    color: #666;
}
@media screen and (min-width: 600px) {
.pagination_box {
    margin: 50px auto 0;
}
li.page_num a {
    font-size: 19px;
    width: 40px;
    height: 40px;
}
li.page_num a:hover {
    color: #009944;
}
li.page_num a.pg_now:hover {
    color: #fff;
}
li.page_pn a {
    width: 40px;
    height: 40px;
}
li.page_pn a:hover {
    background-color: #f3f9f5;
}
}
/* ページネーションここまで */
