@charset "utf-8";

/*CSS Document*/
* {
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
}

a {
  text-decoration: none;
  /*リンクの下線なし*/
}

a:link {
  color: #336699;
  /*クリック前リンク色*/
}

a:visited {
  color: #663366;
  /*クリック済リンク色*/
}

a:hover {
  color: #6699cc;
  /*オンマウス時のフォント色*/
}

img {
  border-style: none;
  /*画像の枠なし*/
}

/*----------ここからフォント色指定----------*/

.gray2 {
  color: #666666;
}

.red_small {
  color: #cc3300;
  font-size: 80%;
}

/*----------body----------*/
body {
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  font-size: 95%;
  /*基本の文字の大きさ*/
  color: #474747;
  /*基本の文字色濃いグレー*/
  font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", "sans-serif";
  -webkit-text-size-adjust: 100%;
  min-width: 414px;
}

/*----------top_main----------*/
#top_main {
  margin: auto;
  height: auto;
  width: 97%;
  max-width: 1200px;/*202306変更前：1100px*/
  min-width: 375px;
  /*padding: 0.5em;*/
}

/*----------ヘッダー----------*/
#header {
  position: relative;
  width: 95%;
  height: 90px;
  max-width: 1200px;/*202306変更前：1100px*/
  margin: 20px auto;
}

#header_logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 40%;
  max-width: 330px;
  min-width: 230px;
  background-image: url(image/title.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header_logo::before {/*アクセシビリティ対応class化*/
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 40%;
  max-width: 330px;
  min-width: 230px;
  background-image: url(image/title.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#header_menu1 {
  /*Google検索ボックス*/
  position: absolute;
  top: 0;
  right: 120px;
}

#header_menu2::before {
  /*言語切り替え*/
  display: inline-block;
  vertical-align: middle;
  content: '';
  width: 23px;
  height: 23px;
  background-image: url(image/earth.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

#header_menu2 {
  position: absolute;
  top: 3px;
  right: 0;
  width: auto;
}

#header_menu2 a {
  width: 25%;
  margin: 0;
  padding: 3px 8px;
  background-color: #757575;
  transition: all 0.2s ease;
  color: #fff;
}

#header_menu2 a:hover {
  background-color: #285d8f;
}

#header_menu3 {
  /*SNSアイコン*/
  position: absolute;
  top: 50px;
  right: 85px;
  float: right;
}

#header_menu4 {
  /*メールマガジン*/
  position: absolute;
  top: 50px;
  right: 0;
  float: right;
   img {
    width: 40px;
   }
}

/*以下#menu-list_sns、レスポンシブ時のメニューにも適用中*/
#menu-list_sns-facebook::before {
  content: url(image/facebook35.svg);
}

#menu-list_sns-twitter::before {
  content: url(image/twitter35.svg);
  padding: 0 15px;
}

#menu-list_sns-youtube::before {
  content: url(image/youtube35.svg);
}

/*以下#menu-list_sns、レスポンシブ時のメニューにも適用中 アクセシビリティ対応class化*/
.menu-list_sns-facebook::before {
  content: url(image/facebook35.svg);
}

.menu-list_sns-twitter::before {
  content: url(image/twitter35.svg);
  padding: 0 15px;
}

.menu-list_sns-youtube::before {
  content: url(image/youtube35.svg);
}


/*----------ナビバー----------*/
#include_navi {
  margin: 0 auto;
  width: 100%;
  position: relative;
  top: 0;
  z-index: 100;
  background-color: #e0e0e0;
  height: 60px;
  border-bottom: solid 4px #285d8f;
}

#navi_list {
  width: 100%;
  max-width: 1200px;/*202306変更前：1100px*/
  margin: 0 auto;
  font-size: 100%;/*16px*/
}

#navi {
  /*子リスト右開き*/
  width: 100%;
  text-align: center;
  margin-bottom: 2px;
}

#navi a {
  padding: 21px 0;
  display: block;
  transition: all 0.4s ease
}

#navi a:hover {
  color: #fff;
  background-color: #285d8f;
  height: auto;
}

#navi li {
  width: 16.5%;
  /*ナビ1つ分の幅*/
  margin: 0 auto;
  border-left: solid 1px #fafafa;
  line-height: 18px;/*22px*/
  display: inline-block;/*float: left;*/
  list-style-type: none;
  position: relative;
  z-index: 100;/*スライドショーより手前に表示*/
  text-align: center;
  height: 60px;
  white-space: nowrap;
}

#navi li:last-child {
  border-right: solid 1px #fafafa;
}

#navi li a {
  color: #474747;
}

#navi li ul {
  /*さいしょは子孫リスト不可視*/
  display: none;
}

#navi li:hover ul {
  /*ナビバーホバー時子リスト可視*/
  display: block;
  position: absolute;
}

#navi li ul li {
  width: 255px;
  /*子リストの幅　位置指定は不要*/
  text-align: left;
  float: none;
  background-color: #e0e0e0;
  height: auto;
}

#navi li ul li a {
  padding: 1em;
  height: auto;
}

#navi li:hover ul li ul {
  /*ナビバーホバー時孫リスト不可視*/
  display: none;
}

#navi li ul li:hover ul {
  /*子リストリストホバー時孫リスト可視*/
  left: 255px;
  /*孫リストの位置*/
  top: -1px;
  display: block;
}

/*----------トップコメント----------*/
#top_comment {
  margin: 1em auto;
}
#top_comment div{
  margin-top: 1%;
  padding: 1%;
  background-color: #d8d6d6;
  border-left: #ababab 20px solid;;
  border-radius: 5px;
}

/*----------各種情報欄（新着情報・イベント情報・
職員募集・調達情報・情報発信）----------*/
#contents1 {
  margin-top: 1%;
  width: 100%;
  border: #ababab 1px solid;
  position: relative;
  margin-top:33px;
}

#contents1 dl {
  top: 0;
  left: 0;
  width: 100%;+
  position: absolute;
}

#contents1 dl dt {
  top: 0;
  left: 0;
  width: 20%;
  font-weight: bold;
  position: absolute;
  border-right: #ababab 1px solid;
  border-bottom: #ababab 1px solid;
  background: #757575;
  box-sizing: border-box;
}

#contents1 dl:nth-child(2) dt {
  left: 20%;
}

#contents1 dl:nth-child(3) dt {
  left: 40%;
}

#contents1 dl:nth-child(4) dt {
  left: 60%;
}

#contents1 dl:nth-child(5) dt {
  left: 80%;
  border-right: none;
}

#contents1 dl dt a {
  padding: 7px 0;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  display: block;
  text-align: center;
  -moz-transition: all 0.2s linear;
  -webkit-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

#contents1 dl dt.btnAcv {
  border-bottom: #285d8f 1px solid;
  background: #3379B8;
}

#contents1 dl dd {
  top: 35px;
  left: 0;
  padding: 20px;
  width: 100%;
  text-align: left;
  overflow-y: auto;
  display: none;
  position: absolute;
  box-sizing: border-box;
}

#contents1 dl dd p {
  line-height: 2em;
}

.pressrelease {
  margin-right: 5px;
  color: #CA3020;
  font-weight: bold;
}


/*----------各種情報欄：リスト設定----------*/
.top_new_list {
  float: left;
  width: 100%;
  line-height: 160%;
}

.top_new_list ul {
  list-style: none;
}

.top_new_list ul li {
  text-align: left;
  padding: 6px 3px;
  display: block;
  background: url("https://www.tobunken.go.jp/image/dot.png") left bottom repeat-x;
}

/*----------contents2：資料を探す・見る、ピックアップ、ご利用案内----------*/
.contents2 {
  display: flex;
  margin-top: 2em;
}

/*----------contents2：正方形アイコン----------*/
.top-icon{
  margin: 1em 2em 0em 2em;
  display:flex; 
  justify-content: center;
  text-align: center;
}
.top-icon-svg{
  width: 100%;
}
.top-icon img{
  width: 85%;
}

/*----------資料を探す・見る----------*/
#db_public {
  width: 50%;
  height: auto;
  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #9c9c9c;
  margin: 0 1em 0 0;
}

#db_public_title {
  width: auto;
  text-align: center;
  border-style: solid;
  border-color: #757575;
  line-height: 35px;
  background-color: #757575;
  color: #ffffff;
  font-size: 16px;
}

#db_public_list {
  width: auto;
  padding: 1em 2em 4em 2em;
  text-align: center;
}

#db_public_list ul li {
  text-align: left;
  line-height: 32px;
  display: block;
  background: url("https://www.tobunken.go.jp/image/dot.png") left bottom repeat-x;
}

#db_public_list ul li:last-child {
  background: none;
}

.db_public_list {/*アクセシビリティ対応class化*/
  width: auto;
  padding: 1em 2em 4em 2em;
  text-align: center;
}

.db_public_list ul li {/*アクセシビリティ対応class化*/
  text-align: left;
  line-height: 32px;
  display: block;
  background: url("https://www.tobunken.go.jp/image/dot.png") left bottom repeat-x;
}

.db_public_list ul li:last-child {/*アクセシビリティ対応class化*/
  background: none;
}

/*----------ピックアップ----------*/
#pickup {
  width: 50%;
  height: auto;
  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #9c9c9c;
}

#pickup_title {
  width: auto;
  text-align: center;
  border-style: solid;
  border-color: #757575;
  line-height: 35px;
  background-color: #757575;
  color: #ffffff;
  font-size: 16px;
}

#pickup_list {
  width: auto;
  padding: 1em 2em;
}

#pickup_list ul li {
  text-align: left;
  line-height: 33px;
  display: block;
  background: url("https://www.tobunken.go.jp/image/dot.png") left bottom repeat-x;
}

#pickup_list ul li:last-child {
  background: none;
}

/*----------各部門のページ----------*/
#contents3 {
  width: 100%;
  height: auto;
  border-width: 1px 1px 1px 1px;
  margin: 2em 0 3em 0;
}

#department_title {
  width: auto;
  text-align: center;
  border-style: solid;
  border-color: #757575;
  line-height: 35px;
  background-color: #757575;
  color: #ffffff;
  font-size: 16px;
}

#contents3 li {
  list-style-type: none;
}

#contents3 a {
  color: #F3F3F3;
}

/*----------各部門のページ：リスト設定----------*/
#top_department {
  text-align: center;
}

#top_department a {
  color: #ffffff;
  display: block;
  padding: 1em;
}

#top_department_2 {
  /*文化財情報資料部*/
  background-color: #3379B8;
  border-width: 0px 1px 0px 1px;
  border-style: solid;
  border-color: #9c9c9c;
}

#top_department_3 {
  /*無形文化遺産部*/
  background-color: #D9B15A;
  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #9c9c9c;
}

#top_department_3 a{
  /*無形文化遺産部*/
  color: #333333;
}

#top_department_4 {
  /*保存科学研究センター*/
  background-color: #5A7E2F;
  border-width: 0px 1px 0px 1px;
  border-style: solid;
  border-color: #9c9c9c;
}

#top_department_5 {
  /*文化遺産国際協力センター*/
  background-color: #8069B5;
  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #9c9c9c;
}

#top_department_separate {
  /*空白部分*/
  height: 7px;
}

#top_department_6 {
  /*文化遺産国際協力コンソーシアム*/
  background-color: #EBE2E9;
  border-width: 1px 1px 1px 1px;
  /*border-style: solid;*/
  border-color: #9c9c9c;
}

/*----------フッター----------*/
#top_footer {
  width: 100%;
  height: auto;
  text-align: center;
  padding: 30px 0;
  background-color: #4a4a4a;
  line-height: 25px;
}

#top_footer div {
  color: #ededed;
  margin: auto;
}

#top_footer a {
  color: #9ebdff;
}

#top_footer a:hover {
  color: #969696;
}

#footer_link1,
#footer_link2 {
  padding-top: 20px;
}

#footer_link1 a {
  padding: 0 1em;
  border-right: solid 1px #737373;
}

#no-border a {
  border-right: none;
}

.no-border a {/*アクセシビリティ対応class化*/
  border-right: none;
}

#footer_link2 li {
  border-bottom: #737373 solid 1px;
  list-style-type: none;
}

/*----------ページトップへ戻るボタン----------*/
#page_toplink {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 0;
  bottom: 0;
  background-color: #285d8f;
  opacity: 0.7;
  border-radius: 50%;
}

#page_toplink a {
  display: block;
  position: relative;
  width: 50px;
  height: 50px;
}

#page_toplink a::before {
  content: url(image/up.svg);
  position: absolute;
  /*以下、20230207追加*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  /*20230207コメントアウト
  top: 15px;
  right: 19px;*/
}

/*20230207コメントアウト
#page_toplink a::after {
  font-size: 14px;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  margin: auto;
}*/

/*----------ここからメディアクエリ----------*/
@media screen and (max-width: 768px) {
  /*修正前1024px以下*/

  #header,
  #include_navi,
  #header_menu2,
  #footer_link1 {
    display: none;
  }

  /*ここからnavigation drawer_1.2(hamburger menu)*/
  /*Copyright(c)2017 four-leaf-4 CODEPEN
    Related under the MIT license
    https://opensource.org/license/mit-license.php*/
  div.btn {
    position: absolute;
    top: 17px;
    right: 20px;
    background: #fff;
    width: 30px;
    height: 30px;
    cursor: pointer;
  }

  div.btn-icon {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
  }

  div.btn-icon span {
    display: flex;
    height: 3px;
    width: 70%;
    background: rgba(0, 0, 0, 0.8);
    transition: .50s ease-in-out;
  }

  div.btn-icon span:nth-of-type(1) {}

  div.btn-icon span:nth-of-type(2) {}

  div.btn-icon span:nth-of-type(3) {}

  .open div.btn-icon span:nth-of-type(1) {
    transform: translateY(7px) rotate(315deg);
  }

  .open div.btn-icon span:nth-of-type(2) {
    width: 0;
    left: 50%;
  }

  .open div.btn-icon span:nth-of-type(3) {
    transform: translateY(-9px) rotate(-315deg);
  }

  /*ナビメニュー*/
  .menu-list {
    display: block;
    position: fixed;
    box-sizing: border-box;
    top: 60px;
    width: 100%;
    height: 100%;
    background-color: #FFF;
    opacity: 1;
    font-size: 120%;
    text-align: center;
    overflow: hidden;
    overflow-y: scroll;
    z-index: 99;
  }

  #list-main li {
    margin: 0 0 2px 0;
    padding: 15px 0;
    list-style-type: none;
    background-color: #e0e0e0;
  }

  #list-main li a:hover {
    display: block;
    background-color: #285d8f;
    color: #fff;
  }

  #list-main li a {
    color: #383838;
    transition: all 0.4s ease
  }

  #list-main li a.wide {
    display: block;/*行全体にリンク設定*/
    padding: 17px 0;
    margin: -15px 0;
  }

  .menu-list_sub {
    width: 100%;
    padding: 35px 0;
    background-color: #cfcfcf;
    font-size: 95%;
    margin-bottom: 60px;
  }

  #menu-list_search,
  #menu-list_language,
  #menu-list_sns {
    display: table;
    height: 65px;
    margin: 0 auto;
  }

  #menu-list_language ul {
    margin-top: 20px;
  }

  #menu-list_language div::before {
    vertical-align: middle;
    margin-right: 5px;
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url(image/earth.svg);
    background-size: contain;
    background-repeat: no-repeat;
  }

  #menu-list_language li {
    float: left;
    width: auto;
    list-style-type: none;
    padding: 0 10px;
  }

  #menu-list_language li a {
    margin: 0;
    padding: 8px 20px;
    background-color: #9c9c9c;
    transition: all 0.2s ease;
    color: #fff;
  }

  #menu-list_language li a:hover {
    background-color: #285d8f;
  }

  #menu-list_sns li {
    width: 65%;
    margin: 0 auto;
  }

  div.blank {
    /*#page_main以下のスタイル指定*/
    width: 100%;
    height: auto;
    margin-top: 38px;
  }
  /*ここまでnavigation drawer_1.2(hamburger menu)*/


  /*レスポンシブ用ヘッダー*/
  .sp_header {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    border-bottom: #dedede solid 1px;
    background: #fff;
    box-shadow: 0 0 3px 0 rgb(0, 0, 0, 0.2);
    /*androidタブレット端末のクロームで表示されない*/
    z-index: 999;
  }

  #header_logo::before {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 35px;
    width: 40%;
    max-width: 240px;
    min-width: 200px;
  }

/*----------各種情報欄（新着情報・イベント情報・
職員募集・調達情報・情報発信）----------*/  
  #contents1 {
    margin-top: 1em;
    width: 100%;
    height: auto !important;
  }

  #contents1 dl {
    top: auto;
    left: auto;
    width: 100%;
    position: relative;
  }

  #contents1 dl dt {
    top: auto;
    left: auto;
    width: 100%;
    position: relative;
    border-bottom: #ababab 1px solid;
    border-right: none;
  }

  #contents1 dl:first-child dt {
    /*border-top: #ababab 10px solid;*/
  }

  #contents1 dl:nth-child(2) dt,
  #contents1 dl:nth-child(3) dt,
  #contents1 dl:nth-child(4) dt,
  #contents1 dl:nth-child(5) dt {
    left: auto;
  }

  #contents1 dl dt a {
    padding: 12px;
    height: auto;
    line-height: 1em;
    text-align: center;
  }

  #contents1 dl dt a:after {
    content: '';
    margin-top: -4px;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.2em;
    display: block;
    position: absolute;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
    -moz-transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  #contents1 dl dt.btnAcv {
    background: #285d8f;
  }

  #contents1 dl dt.btnAcv a:after {
    content: none;
  }

  #contents1 dl dd {
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    position: relative;
  }

  /*----------contents2：正方形アイコン----------*/
  .top-icon-svg{
    width: 100%;
  }
  .top-icon img{
    width: 78%;
  }

  /*----------資料を探す・見る、ピックアップ----------*/
  .contents2 {
    display: block;
  }

  /*----------資料を探す・見る----------*/
  #db_public {
    width: 100%;
    margin-top: 2em;
  }

  /*----------ピックアップ----------*/
  #pickup {
    width: auto;
    margin: 0;
    margin-top: 2em;
  }

  /*----------各部門のページ----------*/
  #department {
    width: 100%;
    margin-top: 2em;
  }

  #top_department {
    text-align: center;
  }

  /*----------フッター----------*/
  #top_footer div {
    width: 75%;
  } 

}

@media screen and (min-width: 769px) {
  /*修正前1025px以上*/

  .sp_header,
  #footer_link2 {
    display: none;
  }
}
