@charset "Utf-8";

body {
    color:dimgray;
    background-color: ghostwhite;
}

header {
    width:980px;
    margin:0 auto;
}

#wrapper {
    width:980px;
    background-color: white;
}
/***ロゴ******************************************************/
header #top{
    border-radius: 10px;
    display: inline-block;
}

header #top img,h1{
       margin: auto;
       vertical-align: middle;
       font-family: 'Italianno', cursive;
       font-weight:500;
       font-size:40px;
}

header #top a {
    text-decoration: none;
    color:dimgrey;
}

#wrapper {
    width:980px
    margin:auto;
}


/*目次部分****************************************************************/
#global_navi {
    width:980px;
    clear:both;
    overflow: hidden;
}

#global_navi ul{
    list-style: none;
}

#global_navi ul li{
    width:175px;
    float:left;
    margin-right:2px;
    text-align: center;
}

#global_navi ul li a {
    display: block;
    background-color: white;
    color: hotpink;
    text-decoration: none;
    border: solid 1px;
    padding: 5px;
}

#global_navi ul li.current a {
    display: block;
    background-color: hotpink;
    color: white;
}

/*ハンバーガー　PCでは非表示******************************/
#header_mb{
    display:none;
}

#breadcrumb {
    font-size: 20px;
    #font-family: 'Fraunces', serif;
}

#breadcrumb ol {
    list-style: none;
    margin: 15px 0 15px 40px;
    padding:0;
}

#breadcrumb ol li {
     display:inline;
}

#breadcrumb ol li::after{
    content: '>';
    padding-left:8px;
}

#breadcrumb ol li:last-child::after {
    content:none;
}

#breadcrumb ol li a {
    text-decoration: none;
    color:gray;
    font-size:18px;
}

#wrapper {
    width:980px;
    margin: 0 auto;
}

/*main*/
#main {
    width:908px;
    margin: auto;
}

#my-parts_mb {
    display: none;
}

/*links************************************************************************/
#links{
 width:800px;
 margin: 30px auto 30px auto; 
}

#links ul {
    text-align: center;
}

#links ul li {
    display: inline;
    margin-right: 10px;
    vertical-align: middle;
}

footer {
    background-color: hotpink;
    text-align: center;
}

footer #footer_nav {
    background-color: white;
    padding: 10px 0;
}

footer #footer_nav ul {
    list-style: none;
    margin: 0;
    padding:0;
}

footer #footer_nav ul li {
    display: inline;
    border-left: solid 1px hotpink;
    margin-left: 8px;
    padding-left: 8px;
    font-size:smaller;
    }

footer #footer_nav ul li a {
    text-decoration: none;
    color:hotpink;
}

footer small {
    display: block;
    padding: 8px 0;
    color: white;
}

footer #footer_nav li:last-child {
    border-right: solid 1px hotpink;
    padding:0 8px;
}

/*ここからスマホ用******************************************************************************/
@media screen and (max-width:768px){
    header,#wrapper, article,#links{
    width:100%;
    }    
  
/*PCのみのbabybamesjapan*/
    #bnj {
        display: none;
    }
    
    #global_navi {
        display: none;
    }
    
    #breadcrumb {
        display: none;
    }
    
    .my-parts{
        display: none;
    }
    
/*ハンバーガー*********************************************************************************/
    #header_mb{
        display: block;
    }

 #header_mb {
  position: fixed;
  width: 100%;
  height: 70px;
  background:hotpink;
}

#nav{
  position: absolute;
  height: 100vh;
  width: 80%;
  left: -85%;
  top: 0;
  background-color:white;
  transition: .7s;
}
#nav ul{
  padding-top: 80px;
}
#nav ul li{
  list-style-type: none;
  font-size: 20px;
  color: white;
}
#nav a{
  display: block;
  text-decoration: none;
  color: hotpink;
  margin: 0 15px;
  padding: 10px;
  transition: .5s;
}
#nav li a:hover{
  color: #ffffff;
  background: hotpink;
  border-bottom: none;
}
#hamburger {
  display: block;
  position: absolute;
  top: 20px;
  left: 30px;
  width: 50px;
  height: 44px;
  cursor: pointer;
  transition: 1s;
}
.inner_line {
  display: block;
  position: absolute;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #ffffff;
  transition: 1s;
  border-radius: 4px;
}
#line1 {
  top: 0;
}
#line2 {
  top: 15px;
}
#line3 {
  bottom: 10px;
}
#header_mb h1 {
  text-align: center;
  line-height: 70px;
  color: salmon;
  font-size:30px;
}

.in{
  transform: translateX(100%);
}

.line_1,.line_2,.line_3{
  background: hotpink;
}
.line_1 {
  transform: translateY(20px) rotate(-45deg);
  top: 0;
}
.line_2 {
  opacity: 0;
}
.line_3 {
  transform: translateY(-11px) rotate(40deg);
  bottom: 0;
}
    
/**ハンバーガー終わり**************************************/
    #top {
        margin-top:85px;
    }
    
}