/* common -------------------------------------------- */
body {
  height: 100%;
  font-size: 14px;
  line-height: 1.7;
  background: #DEDEDE;
  counter-reset: paperscounter h3counter;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
}
ol {
  padding: 0;
}
.bl {
  text-align: left;
  display: block;
  text-indent: -999em;
  overflow: hidden;
  border: none; 
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden; 
}

.clearfix {
  clear: both; 
}

.italic {
  font-style: italic;
}
.bold {
  font-weight: bold;
}

.wrapper_big {
  width: 1240px;
  margin: 0 auto;
}

.wrapper {
  width: 1020px;
  margin: 0 auto;
}
.navbar {
  border: none;
  border-radius: 0;
}
.carousel-indicators li {
  border-radius: 0;
  width: 45px;
  height: 6px;
  margin: 0;
  margin-right: 10px;
  border: 1px solid #7E1E29;
}
.carousel-indicators li.active {
  width: 45px;
  height: 6px;
  margin-right: 10px;
  background: #7E1E29;
}
.carousel-indicators li:last-of-type {
  margin-right: 0;
}
.left-arrow img, .right-arrow img {
  margin-top: 120%;
}
/* header */

header {
  z-index: 999;
  width: 1020px;
  height: 122px;
  background: url(../images/header_bg.png) 0 0 repeat-x;
}
header h1 {
  float: left;
  margin-top: 30px;
  margin-left: 30px;
}
header #jpeng {
  float: right;
  width: 99px;
  height: 29px;
  margin-top: 30px;
  margin-right: 30px;
  margin-left: 500px;
  background: url(../images/eng.png) 0 0 no-repeat;
}

#menu {
  background: #7E1E29;
  border-bottom: 2px solid #9B565F;
}
#menu .menu_item {
  padding: 20px 0;
  border-right: 2px solid #9B565F;
}
#menu .menu_item a img {
  display: block;
  margin: 0 auto;
}
#menu .line {
  border-bottom: 2px solid #9B565F;
}
h2 {
  color: #7E1E29;
}
h2.sub {
  background: url(../images/sub_main_img_pc.png);
  padding: 0;
  margin: 0;
}

#main_text_sp {
  background: #fff;
  padding: 30px 10px;
}
#main_text_sp h4{
  text-align: center;
  font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  margin-bottom: 40px;
  color: #7E1E29;
  font-size: 200%;
}
#main_text_sp p {
  text-align: center;
}


main {
  display: block;
  background: #7E1E29;
}
main #topics, main article {
  background: #fff;
  height: 100%;
}
main article > section {
  padding-top: 20px;
  padding-bottom: 30px;
  margin: 0px 20px;
}

main article > section > * {
  padding-left: 95px;
}
main article > section ol.decimal {
  padding-left: 110px;
}

main article > section h3 {
  margin: 0;
  color: #7E1E29;
  display: block;
  margin-bottom: 15px;
  padding-left: 0px;
  
}
main article > section h3 > span {
  display: inline-block;
  width: 70%;
  vertical-align: middle;
  margin-top: -15px;
}
main article > section h3:before {
  counter-increment: h3counter;
  content: counter(h3counter);
  font-family: 'Times New Roman';
  font-size: 2em;
  color: #E8D4BB;
  display: inline-block;
  width: 95px;
  height: 73px;
  padding: 10px 0px 0px 24px;  
  background: url(../images/sub_h3.png) no-repeat;  
}
main #topics {
  padding: 10px;
  margin-top: 20px;
}
main #topics h2 {
  font-size: 18px;
  border-bottom: 1px solid #000;
  padding-bottom: 20px;
}
main #topics h2 a {
  height: 20px;
  float: right;
  color: #000;
  font-size: 12px;
  padding-right: 30px;
  padding-top: 3px;
  background: url(../images/a_arrow.png) right 0 no-repeat;
}
main #topics dl dt:nth-child(3n+1) {
  float: left;
}
main #topics dl dt:nth-child(3n+2) {
  width: 280px;
  font-weight: normal;
  color: #3C8319;
  padding-left: 100px;
  margin-bottom: 10px;
}
.green {
  background: #9AB55E;
}
.purple {
  background: #A596DA;
}
main #topics dl {
  max-height: 480px;
  overflow-y: auto;
}
main #topics.sub dl {
  max-height: unset;
}
main #topics dl dt:nth-child(3n+2) .des {
  float: right;
  width: 90px;
  height: 20px;
  color: #fff;
  padding: 2px 0;
  font-size: 12px;
  margin-left: 10px;
  text-align: center;
}
main #topics dl dd {
  margin-bottom: 50px;
  padding-left: 100px;
}

#publications > section > section {
  margin-bottom: 25px;
}

#publications ol.papers {
  list-style: none;
}
#publications ol.papers li:before {
  counter-increment: paperscounter;
  content: counter(paperscounter) ".";
  display: inline-block;
  text-align: right;
  width: 30px;
  margin-left: -30px;
  padding-right: 5px;
}

#publications ol.papers2 {
  list-style: decimal;
}
#publications ol.papers2 li:before {
  display: inline-block;
  text-align: right;
  width: 30px;
  margin-left: -30px;
  padding-right: 5px;
}

#publications span.bi {
  font-weight: bold;
  font-style: italic;
}
#publications span.ita {
  font-style: italic;
}

#member h4 {
  font-weight: bold;
  font-size: 20px;
  border-left: 8px solid #7E1E29;
  padding-left: 10px; 
}
#member dt {
  font-size: 18px;
  font-weight: normal;
  margin: 5px 0;
}
#member div {
  margin-top: 3em;
}
ol.decimal li {
  list-style-type: decimal;
}
#archive h2 {
  font-size: 24px;
}

/* tab */
.nav-tabs {
  border-bottom: 1px solid #7E1E29;  
}

.nav > li > a {
  color: #7E1E29;
}
.nav > li > a:hover, .nav > li > a:focus {
  text-decoration: none;
  background-color: #E9D5BA;
  border-bottom: 1px solid #7E1E29;  
}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  color: #fff;
  background: #7E1E29;  
}
.nav-tabs > li > a:hover {
  
}
.tab-content {
  margin-top: 25px;
}


/* footer */
footer {
  background: #690019;
  text-align: center;
  padding-top: 50px;
  color: #fff;
}
footer #banner {
  max-width: 1020px;
}
footer #banner img {
  max-width: 310px;
  width: 100%;
}

/* copyright */
footer small {
  display: block;
  padding: 80px 0 15px;  
}

figure {
  margin-bottom: 80px;
}

/* -------------------------------------------- common */

/* responsive --------------------------------------- */
/* pc */
@media screen and (min-width: 1021px) {
  header {
    position: absolute;
  }
  header nav.hamburger {
    display: none; 
  }
  header nav.following {
    float: right;
    margin: 0;
    margin-top: 20px;
  }
  header nav.following ul {
    display: block;
    margin-right: 30px;
  }
  header nav.following ul li {
    float: left;
    padding-right: 20px;
    background: url(../images/dot.png) right+0.5em center no-repeat;
  }
  header nav.following ul li:last-of-type {
    background: none;
    padding-right: 0;
  }
  header nav.following ul li a {
    color: #fff;
    font-weight: normal;
  }
  #menu .menu_item.lg-noline {
  border-right: 0;
  }
  #slide {
    padding-top: 0!important;
  }

  /* subpage title */
  h2.sub {    
    height: 329px;
  }
  h2.sub img {
    margin: 0 160px;
    padding-top: 200px;
  }
  h2.sub div {
    display: block;
    margin: 0 160px;
    padding-top: 200px;
    color: #fff;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  }
  h2.sub span.japanese {
    font-size: 38px;
    letter-spacing: 6px;
  }
  h2.sub span.english {
    color: #E8D4BB;
    font-size: 16px;
    letter-spacing: 4px;
    padding-left: 16px;
  }
  main {
    position: relative;
    box-shadow: 0px 7px 20px rgba(0,0,0,0.3);
  }
  main #topics {
    margin-bottom: 120px;
  }
  main #topics.sub dl {
    padding-left: 95px;
  }
  main #totop {
    width: 55px;
    height: 46px;
    background: url(../images/pagetop.png) 0 0 no-repeat;
    position: fixed;
    bottom: 30px;
    left: auto;
    margin-left: 1158px;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    opacity: 0;
  }
  main #totop.locked {
    position: absolute;
  }

  main article > section {
    padding-right: 40px;
  }
  .nav-tabs {
    margin-left: 95px;
  }
  
  /* footer icon */
  footer > img {
    margin: 0 auto 35px;
  }
  footer > ul {
    margin: 0 auto 50px; 
  }
  footer > ul li {
    display: inline-block;
  }
  footer > ul li:after {
    content: "|";
    padding: 0px 22px;
  }
  footer > ul li:last-child:after {
    content: none;
  }
  footer > ul a, footer > ul a:hover{ color: #fff; }
}

/* smart phone */
@media screen and (max-width: 1020px) {  
  header {
    width: 100%;
    height: 100px;
    padding-top: 20px;
  }
  .wrapper {
    width: 100%;
    margin: 0;
  }
  .wrapper_big {
    width: 100%;
    margin: 0;
  }
  header h1 {
    float: none;
    margin: 0 auto;
  }
  header h1 img {
    margin: 0 auto;
  }
  header nav.hamburger {
    background: url(../images/header_bg.png) 0 0 repeat-x;
    min-height: 0;
    margin-bottom: 0; 
  }
  header .navbar-default .navbar-toggle {
    border: none; 
  }
    header .navbar-toggle {
      display: block;
      margin-top: -50px; 
    }
    header .navbar-collapse {
      border: none;
      margin-top: 22px;
      box-shadow: none;
    }
    header .navbar-default .navbar-toggle .icon-bar {
      background-color: #E7D2B9;
      width: 28px;
      height: 5px;
      border: none; 
    }
  header nav.hamburger #navbar ul li {
    border-bottom: 1px solid #E7D2B9;
    background-color: #7E1E29;
    z-index: 999;
  }
  header nav.hamburger #navbar ul li a {
    height: 50px;
    padding: 15px 35px;
    color: #FFFFFF;
    text-decoration: none;
  }
  header nav.hamburger #navbar ul li:last-child {
    height: 50px;
  }
  header nav.hamburger #navbar ul li:last-child a {
    width: 99px;
    margin: 0 auto;
    padding: 0;
    height: 29px;
    line-height: 50px;
    border-bottom: none;
  }
  header nav.following {
    display: none; 
  }
  #menu .menu_item.xs-noline {
  border-right: 0;
  }


  h2.sub {    
    background-size: cover;
    width: 100%;
  }
  h2.sub img {
    margin: 0 auto;
    padding: 50px 0;
  }
  h2.sub div {
    display: block;
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
    color: #fff;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
  }
  h2.sub span.japanese {
    font-size: 38px;
    letter-spacing: 6px;
  }
  h2.sub span.english {
    color: #E8D4BB;
    font-size: 16px;
    letter-spacing: 4px;
    padding-left: 16px;
  }

  main {
    padding: 0;
  }
  main article > section > * {
    padding-left: 0px;
  }
    main article > section ol.decimal {
    padding-left: 20px;
  }
  main #topics {
    margin: 0;
  }

  #publications ol {
    margin-left: 15px;
  }

  footer #banner a {
    margin: 10px 0;
  }
}

/* --------------------------------------- responsive */

/* ??? */
@media screen and (max-width: 360px) {  
  main article > section h3:before {
    counter-increment: h3counter;
    content: counter(h3counter);
    font-family: 'Times New Roman';
    font-size: 35px;
    color: #E8D4BB;
    display: inline-block;
    width: 67px;
    height: 53px;
    padding: 7px 0px 0px 18px;  
    background: url(../images/sub_h3_sp.png) no-repeat;  
  }
}
@media screen and (max-width: 380px) {
  header {
    padding-top: 25px;
  }
  header h1 {
    width: 62%;
    height: 58px;
  }
}
