@charset "utf-8";
/*
theme Name: 難病情報センター
Author: sec)uno
Description: 難病情報センター向けテーマ
version： 1.0.0
*/
/* reset */
@import url('css/reset.css');
@import url('css/style_news.css');

/* 既存CMS */
@import url('css/style_site.css');
@import url('css/style_glossary.css');
@import url('css/sp.css');


h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  border-bottom: solid 0px #ddd;
}

footer {
  border-top: solid 1px #ddd;
}

.header-inner, .container, .footer-inner {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 10px;
  padding-left: 10px;
}

.contents, #sidebar {
  margin: 10px 0;
}

/*ヘッダー*/
.site-title {
  text-align: left;
  background: url('/wp-content/uploads/images/header.png') no-repeat;
  height: 100px;
}

.site-title h1 {
  font-size: 3.6em;
  margin: 0;
  /* padding: 5px 5px 0; */
}

/*スマホ用のメニューボタン*/
.header-inner {
  position: relative;
}

#navbutton {
  position: absolute;
  top: 25%;
  right: 5px;
  padding: 8px;
  cursor: pointer;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border: solid 1px #aaa;
  border-radius: 5px;
  /* background-color: #fff; */
  background-color: #005aa0;
}

#navbutton:hover {
  background-color: #ddd;
}

#navbutton:focus {
  outline: none;
}

#navbutton i {
  font-size: 2.5em;
  color: #fff;
}
#navbutton p {
  color: #fff;
}


/* パンくずリスト */
div.breadcrumbs {
  max-width: 1200px;
  padding-left: 10px;
}
.tools-container {
  padding-top: 40px;
  display: flex;
  flex-direction: row-reverse;
}
.tools-container .sitemap {
  margin-right: 0.5em;
  margin-top: 15px;
  display: flex;
}
.sitemap img {
  margin-right: 3px;
}

.sitemap a {
  margin-top: 5px;
}

.tools-container .fontsize {
  margin-right: 0.5em;
}
.tools-container .search {
  margin-top: 8px;
  width: 300px;
}
.tools-container .fontsize p {
  font-size: 0.8em;
}
.tools-container .fontsize a {
  float: left;
  height: 18px;
  width: 39px;
  text-indent: -9999px;
  background: url('/wp-content/uploads/images/header_fontsize.png') no-repeat;
}
.tools-container .fontsize div {
  border: 1px solid #aaaaaa;
  overflow: hidden;
}
.tools-container .fontsize a#font-small {
  background-position: 0 0;
  border-right: 1px solid #ffffff;
}
.tools-container .fontsize a#font-medium {
  background-position: -39px 0;
  border-right: 1px solid #ffffff;
}
.tools-container .fontsize a#font-large {
  background-position: -78px 0;
}
.tools-container  .fontsize a#font-small:hover, .tools-container  .fontsize .select a#font-small {
  background-position: 0 -18px;
}
.tools-container  .fontsize a#font-medium:hover, .tools-container  .fontsize .select a#font-medium {
  background-position: -39px -18px;
}
.tools-container  .fontsize a#font-large:hover, .tools-container  .fontsize .select a#font-large {
  background-position: -78px -18px;
}

/*------フッター------*/
footer {
  background-color: #ffffff;
}

/*フッターメニュー*/
.footer-nav {
  margin-bottom: 5px;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  /*display: flex;*/
}

.footer-nav ul:after {
  display: block;
  clear: both;
  content: '';
}

.footer-nav li {
  /* float: left; */
  padding-top: 3px;
  /*width: 50%;*/
  text-align: center;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}
.footer-nav li+ li {
  border-left: 0;
  border-right: 1px solid #333;
}

.footer-nav li a {
  font-size: .9em;
  display: block;
  padding: 2px 5px;
  /* text-decoration: none; */
  color: #005aa0;
}

.footer-nav li a:hover {
  opacity: .6;
}

/*コピーライト*/
.copyright p {
  font-size: .9em;
  margin: 0;
  text-align: left;
  color: #000;
}

/*検索結果記事*/
.result-article {
  margin : 10px 0;
}

/*検索結果記事タイトル*/
.result-article .title-font{
  size: large;
}

/*再検索フォーム*/
#result-search-form{
  margin : 10px 0;
}

/* 太文字 */
.bold-font{
  font-weight: bold;
}

/*------サイドバー------*/
#sidebar {
  width: 221px;
}
.sidebar-wrapper {
  /* margin-bottom: 1.8em; */
  padding: 0px;
}

.sidebar-wrapper h4 {
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 7px 10px;
  color: #fff;
  background-color: #464646;
}

/*デフォルトウィジェット*/
.widget_recent_entries ul, .widget_meta ul, .widget_recent_comments ul, .widget_pages ul, .widget_meta ul, .widget_categories ul, .widget_archive ul, .widget_nav_menu ul {
  padding: 0;
  list-style: none;
}

.widget_recent_entries li, .widget_meta li, .widget_recent_comments li, .widget_pages li, .widget_meta li, .widget_categories li, .widget_archive li, .widget_nav_menu li {
  position: relative;
  padding: 10px;
}

.widget_recent_entries li, .widget_nav_menu li {
  padding-left: 25px;
}

.widget_recent_entries a, .widget_meta a, .widget_recent_comments a, .widget_pages a, .widget_meta a, .widget_categories a, .widget_archive a, .widget_nav_menu a {
  text-decoration: none;
  color: #333;
}

.widget_recent_entries a:hover, .widget_meta a:hover, .widget_recent_comments a:hover, .widget_pages a:hover, .widget_meta a:hover, .widget_categories a:hover, .widget_archive a:hover, .widget_nav_menu a:hover {
  opacity: .6;
}

/*カテゴリウィジェット*/
.widget_categories li {
  display: inline-block;
  margin: 2px;
  padding: 2px 10px;
  white-space: nowrap;
  border-radius: 3px;
  background-color: #777;
}

.widget_categories li:before {
  font-family: 'Font Awesome 5 Free';
  font-size: .8em;
  font-weight: bold;
  padding-right: 2px;
  content: '\f02b';
  color: #fff;
}

.widget_categories li a {
  font-size: .8em;
  color: #fff;
}

/*タグウィジェット*/
.tagcloud a {
  font-size: .9em !important;
  line-height: 2.5em;
  margin: 2px;
  padding: 2px 10px;
  white-space: nowrap;
  text-decoration: none;
  color: #333;
  border: 1px solid #333;
  border-radius: 3px;
}

/*新着ウィジェット*/
.widget_recent_entries li:before {
  font-family: 'Font Awesome 5 Free';
  font-weight: bold;
  position: absolute;
  left: 5px;
  content: '\f303';
  color: #464646;
}

/*メニューウィジェット*/
.widget_nav_menu li:before {
  font-family: 'Font Awesome 5 Free';
  font-weight: bold;
  position: absolute;
  left: 5px;
  content: '\f0da';
  color: #464646;
}

/*カレンダーウィジェット*/
#wp-calendar {
  width: 100%;
}

#wp-calendar tbody {
  text-align: center;
}

/* 用語集 */
div.glossary_term {
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
}
div.glossary_nav {
  display: flex;
}
img.glossary_initial_letter {
  max-width: 100%;
  height: auto;
  margin-left: 10px;
  margin-right: 10px;
}
div.glossary_term {
  padding-left: 0px;
}
div.glossary_term_title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* TOPに戻るボタン */
#to_pagetop_btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: none;
}
#to_pagetop_btn a {
  background: rgba(0, 95, 182, 0.5);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 20px 20px;
  border-radius: 10px;
}
#to_pagetop_btn a:hover {
  background: rgb(0, 95, 182);
  color: #fff;
  text-decoration: none;
}

@media (min-width: 813px) and (max-width: 1024px) {
  /*コンテンツとサイドバーを横に並べる*/
  .container:after {
    display: block;
    clear: both;
    content: '';
  }
  .contents {
    float: left;
    width: 77%;
    margin-right: 1%;
  }
  #sidebar {
    float: left;
    width: 19%;
  }
  /*ヘッダーメニューPC閲覧時*/
  #header-nav {
    display: block!important;
  }
  .header-nav {
    max-width: 1024px;
    margin: 0 auto;
    padding:0 10px;
    box-sizing: border-box;
  }
  .header-nav ul:after {
    display: block;
    clear: both;
    content: '';
  }
  .header-nav li {
    display: inline-block;
    width: auto;
  }
  .header-nav li a {
    font-size: 1.1em;
    padding: 5px 10px;
  }
  #navbutton {
    display: none;
  }

  .footer-nav li {
    width: auto;
    text-align: left;
  }
  .footer-nav li a {
    font-size: 0.8em;
    padding: 3px 20px;
  }
  /*コピーライト*/
  .copyright p {
    text-align: left;
  }
}

@media (min-width: 1025px) {
  /*コンテンツとサイドバーを横に並べる*/
  .container:after {
    display: block;
    clear: both;
    content: '';
  }
  .contents {
    float: left;
    width: 79%;
    margin-right: 2%;
  }
  #sidebar {
    float: left;
    width: 19%;
  }
  /*ヘッダーメニューPC閲覧時*/
  #header-nav {
    display: block!important;
  }
  .header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding:0 10px;
    box-sizing: border-box;
  }
  .header-nav ul:after {
    display: block;
    clear: both;
    content: '';
  }
  .header-nav li {
    display: inline-block;
    width: auto;
  }
  .header-nav li a {
    font-size: 1.1em;
    padding: 5px 10px;
  }
  #navbutton {
    display: none;
  }

  .footer-nav li {
    width: auto;
    text-align: left;
  }
  .footer-nav li a {
    font-size: 0.8em;
    padding: 3px 20px;
  }
  /*コピーライト*/
  .copyright p {
    text-align: left;
  }
}

/* 印刷時 */
@media print{
  header.site-title
  {
    display: none;
  }
  div.tools-container
  {
    display: none;
  }
  #navbutton
  {
    display: none;
  }
  div.header-nav
  {
    display: none;
  }
  div.footer-nav-area
  {
    display: none;
  }
  #sidebar
  {
    display: none;
  }
  #to_pagetop_btn {
    display: none;
    opacity: 0;
  }

  .entry h2 {
    border:1px solid #CCCCCC;
    border-radius:10px;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
  }
  .entry {
    font-size: 10pt;
  }

  #entry_type3 div.text h3, #entry_type3 div.text dt, div.category_3 div.qanda dt{
    display: list-item;
    list-style-image:url("/wp-content/themes/nanbyou/images/pret_q.gif");
    list-style-position: inside;
  }
  #entry_type3 div.text dd, div.category_3 div.qanda dd{
    display: list-item;
    list-style-image:url("/wp-content/themes/nanbyou/images/pret_a.gif");
    list-style-position: inside;
  }
}
