@charset "utf-8";
/* ==========================================================================
   武蔵嵐山病院 おしらせ詳細ページ（shosai.php）用スタイル
   ・構成は「あさか相生病院タイプ」（サイトのヘッダー・フッターの中に詳細を表示）
   ・色味は嵐山サイトに合わせています（グリーン #009944 / 見出し帯 #4cb77c）
   ・サイト共通CSS（assets/css/style.css）と ../pnews.css を読み込んだ上で使います
   ========================================================================== */

/* 詳細の枠 */
.oshirase_shosai_box {
    margin: 0 auto;
}
#pnDetail {
    box-sizing: border-box;
    width: 100%;
    background-color: #fff;
    border: solid 1px #e5e5e5;
    border-top: solid 3px #009944;
    padding: 25px 18px 30px;
}

/* 日付、見出し、本文まわり */
#pnDetail .date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
}
#pnDetail .rt_date {
    margin-left: -0.5em;
    font-weight: bold;
    color: #009944;
}
#pnDetail .news-new-waku,
#pnDetail .news-important-waku {
    margin-left: 0;
    vertical-align: 0;
}
.oshirase_shosai_midashi {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: solid 1px #e5e5e5;
    font-size: 20px;
    line-height: 1.45;
    font-weight: bold;
    color: #333;
}
.oshirase_shosai_honbun {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}
.oshirase_shosai_honbun a {
    color: #009944;
    text-decoration: underline;
}
.oshirase_shosai_honbun a:hover {
    color: #007a36;
}
.oshirase_shosai_honbun u {
    text-decoration: underline;
}

/* 添付ファイル */
.oshirase_shosai_links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}
.oshirase_shosai_links a.os_link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10px 14px 10px 40px;
    font-size: 15px;
    line-height: 1.4;
    color: #009944;
    background-color: #fff;
    border: solid 1px #009944;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.oshirase_shosai_links a.os_link:hover {
    background-color: #f3f9f5;
    text-decoration: none;
}
/* アイコン */
.filelink {
    background-repeat: no-repeat;
    background-position: 12px 50%;
    background-size: 20px;
    background-image: url("icons/icons_general.svg");
}
.filelink.doc,
.filelink.docx { background-image: url("icons/icons_word.svg"); }
.filelink.pdf { background-image: url("icons/icons_pdf.svg"); }
.filelink.ppt,
.filelink.pptx { background-image: url("icons/icons_ppt.svg"); }
.filelink.jpg,
.filelink.gif,
.filelink.png { background-image: url("icons/icons_img.svg"); }
.filelink.txt { background-image: url("icons/icons_txt.svg"); }
.filelink.xls,
.filelink.xlsx { background-image: url("icons/icons_excel.svg"); }
.filelink.zip { background-image: url("icons/icons_zip.svg"); }

/* 写真 */
.oshirase_shosai_pic {
    margin-bottom: 10px;
}
.oshirase_shosai_pic .os_fig {
    margin: 0 0 22px;
}
.oshirase_shosai_pic img {
    display: block;
    height: auto;
}
.oshirase_shosai_pic img.os_pic_horizontal {
    width: 100%;
    max-width: 600px;
}
.oshirase_shosai_pic img.os_pic_vertical {
    width: 100%;
    max-width: 360px;
}
.oshirase_shosai_pic .os_cap {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 戻るボタン・一覧へ */
.btn_close_box {
    margin-top: 30px;
    text-align: center;
}
a.btn_close_notice {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 90%;
    max-width: 320px;
    height: 46px;
    font-size: 16px;
    color: #fff;
    background: #009944;
    border-radius: 23px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
a.btn_close_notice:hover {
    background: #007a36;
    text-decoration: none;
}
.go_news_box {
    margin-top: 30px;
    text-align: right;
}
a.go_news {
    position: relative;
    padding-right: 46px;
    color: #009944;
    text-decoration: none;
    transition: 0.3s;
}
a.go_news:before {
    position: absolute;
    content: "";
    width: 40px;
    height: 1px;
    top: 50%;
    right: 0;
    background: #aaa;
    transform: translateY(-50%);
    transition: 0.3s;
}
a.go_news:after {
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    top: 50%;
    right: 2px;
    border-top: 1px solid #aaa;
    transform: translateY(-50%) rotate(45deg);
}

/* ######## 768px以上 ######## */
@media screen and (min-width: 768px) {
#pnDetail {
    padding: 40px 60px 45px;
}
.oshirase_shosai_midashi {
    font-size: 24px;
}
.oshirase_shosai_honbun {
    font-size: 17px;
}
a.go_news:hover {
    padding-right: 36px;
    text-decoration: none;
}
a.go_news:hover:before {
    width: 30px;
}
}

/* 本文内の段落・画像（過去のおしらせから取り込んだ本文にも対応） */
.oshirase_shosai_honbun p {
    margin: 0 0 1em;
}
.oshirase_shosai_honbun p:last-child {
    margin-bottom: 0;
}
.oshirase_shosai_honbun img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
.oshirase_shosai_honbun .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.oshirase_shosai_honbun .alignleft {
    float: left;
    margin: 0 1em 1em 0;
}
.oshirase_shosai_honbun .alignright {
    float: right;
    margin: 0 0 1em 1em;
}
.oshirase_shosai_honbun:after {
    content: "";
    display: block;
    clear: both;
}

/* カテゴリーのラベル（詳細ページでは日付の右に表示） */
#pnDetail .pnCatLabel {
    margin-left: 0;
    vertical-align: 0;
}
