@charset "Utf-8";

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

/*背景白**************************************************************/

header {
    width:980px;
    margin: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:170px;
    float:left;
    margin-right:0px;
    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;
}

/*パンくずリスト*************************************/
#breadcrumb {
    width:980px;
    font-size: 20px;
    margin: auto;
}

#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;
}


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

/*本文**************************************************/
#wrapper {
    width:980px;
    margin: 0 auto;
}

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

/*Story of JPNamesの説明******************************************/
#story{
 width:800px;
 margin: auto auto 50px auto;
}

#story h2 {
font-family: 'Lobster', cursive;
font-size: 25px;
margin-bottom: 0;
color:mediumpurple;
text-align: center;
}

#story h3 {
font-style:italic;
font-size: 18px;
margin-bottom: 0;
background-color: mediumpurple;
color:white;
}

#story p {
 word-break: keep-all;
 font-size: 18px;
}

.links {
    text-decoration: none;
    color: mediumpurple;
}

#detailp {
    margin-bottom: 0;
}

/*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******************************************************************/
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 salmon;
    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;
}

footer small a {
    text-decoration: none;
    color:white;
}

/*ここからスマホ用******************************************************************************/
@media screen and (max-width:768px){
    header,#main,#wrapper, #story,#links{
    width:100%;
    }

/*グレイの背景をwhite***************************************************************/
body {
    color:dimgray;
     background-color:white;
}
    
/*PCのみのbabybamesjapan*/
    #bnj {
        display: none;
    }
    
/*ハンバーガがあるので非表示**********************************************************/
    #global_navi {
        display: none;
        margin: auto auto 30px 0;
    }
    
    #global_navi ul li {
        width:50%;
        padding: 1px;
        margin: 0;
        box-sizing: border-box;
        font-size: 100%;
    }
    
    #global_navi ul li a {
        margin: 0;
    }
    
    #global_navi ul li:last-child {
        width: 100%;
    }
    
 /*ハンバーガー*********************************************************************************/
    #header_mb{
        display: block;
    }

  * {
  margin: 0;
  padding: 0;
  }

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

#nav{
  position: absolute;
  height: 100vh;
  width: 80%;
  left: -80%;
  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: hotpink;
  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;
    }    
    
/*パンくずリスト**非表示******************************/
#breadcrumb {
display:none;
}      

    #story h2 {
        margin-top: 10px;
    }
    
}