/* COMMON STTINGS */
body{
  background-color: #fff;
}

h1 span{
  display: inline-block;
}

.narrower{
  max-width:900px;
  min-width:720px;
}

a.button.pink{
  letter-spacing: 0.03em;
  font-size:18px;
}

input[type="submit"]{
  word-wrap: break-word;
  margin:5px auto 0;
  display: block;
  padding:18px 28px;
  font-size:16px;
  line-height:1.4;
  border-radius:40px;
  text-align:center;
  position:relative;
  box-sizing: border-box;
  width:auto;
  border:2px solid #55acee;
  background-color: transparent;
  transition:all 0.2s ease 0s;

  color:#55acee;
  font-weight:700;
}

input[type="submit"]:hover{
  border:2px solid #55acee;
  color:#fff;
  background-color:#55acee;
}

.lead{
  background-color: #D8E9F5;
  padding-top:20px;
  padding-bottom:20px;
  text-align: center;
}


.lead ul{  /* POPUP COMMENTS */
  align-items: center;
  margin: -50px auto 15px;
  padding:20px;
  width:auto;
  background-color: #f4f4f4;
  border: solid 1px #eee;
  border-radius: 2px;
  transition:all 1s 1s ease;
  position: relative;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  box-sizing: border-box;
  display:inline-flex;
  justify-content: center;
  -js-display:flex;
  display : -ms-inline-flexbox;
  -ms-flex-pack:center;
}

.lead ul:before{
  content: "";
  position: absolute;
  bottom: -24px;
  left: 50%;
  margin-left: -15px;
  border: 12px solid transparent;
  border-top: 12px solid #f4f4f4;
  z-index: 2;
}

.lead ul:after{
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  margin-left: -17px;
  border: 14px solid transparent;
  border-top: 14px solid rgba(0,0,0,0.05);
  z-index: 1;
}

.lead ul li{
  font-size:18px;
  text-align: left;
}

.lead li:last-child{
  padding-left:15px;
}
.lead ul li img{
border-radius: 50%;
height: 70px;
width: 70px;
overflow: hidden;
background-color: #fff;
}

/* MAIN TITLE */

#main-title{
  width:100%;
  min-height:280px;
  position:relative;
  background-color: #D8EAF6;
}

@media screen and (max-width:767px){
  #main-title{
    width:100%;
    min-height:280px;
    position:relative;
    background-color: #D8EAF6;
    height: 210px;
  }
}

/*
section#main-title:after{
  position:absolute;
  content:"";
  display: block;
  top:0;
  width:100%;
  height:100%;
  background-color: #f4f4f4;
  z-index: 1;
}*/

#main-title:after{
  position:absolute;
  content:"";
  display: block;
  top:0;
  width:100%;
  height:100%;
  background-image:url(../images/bg-dummy.jpg);
  background-position: top center;
  z-index: -1;
}


#main-title div{
  padding-top:75px;
  padding-bottom:75px;
  line-height:1.4;
  position:relative;
}

@media screen and (max-width:767px){
  #main-title div{
    padding-top:0px;
    padding-bottom:0px;
  }
  
  /* .narrow h1{
    width: 100px;
  } */
}

#main-title h1{
  font-size:30px;
  font-weight: 700;
  width:70%;
  max-width:800px;
  min-height: 3em;
  text-align: left;
}

#main-title p{
  font-size:18px;
  font-weight: 700;
  margin-top:20px;
}

#main-title img{
  position: absolute;
  display:block;
  margin:0 auto;
  width:240px;
  height:240px;
  bottom: 25px;
  right: 25px;
  z-index: 2;
  /* border-radius: 50%; */
  border-radius: 15%;
  overflow: hidden;
  /* align-items: center;
  justify-content: center; */
}

/* #popular ul a img:first-child{
  display:block;
  margin:0 auto;
  width:140px;
  height:140px;
  border-radius:50%;
  overflow: hidden;
  background-color: #f4f4f4 /* 丸抜きイメージの背景色 */;
} */

#main-title p.free{
  margin-top:.5em;
  display: inline-block;
  padding:.25em .5em;
  font-size:16px;
  background-color:#f0037f;
  color:#fff;
  letter-spacing: 0.01em;
  font-weight:400;
}

/* PROFILE */
#profile a.button.gray{
  font-size:16px;
  padding:15px 10px;
  width:220px;
  text-indent:-.5em;
}

/* BACKNUMBER */
#backnumber{
  padding-bottom:40px;
}
#backnumber section{
  margin-top:40px;
  border:1px solid #ddd;
  border-radius: 2px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#backnumber section + section{
  margin-top:15px;
}

#backnumber section > h1{
    font-size:22px;
    font-weight:700;
    padding-top:30px;
    padding-bottom:30px;
    text-align: center;
}

#backnumber h1{
  cursor: pointer;
  position:relative;
  transition: all 0.2s ease 0s;
  box-sizing: border-box;
}

#backnumber h1:after{
  position: absolute;
  content:"";
  background-image: url("/images/pulldown.svg");
  background-repeat: no-repeat;
  top:calc(50% - 6px);
  right:40px;
  width:24px;
  height:13px;
  background-size: contain;
  transition: all 0.2s ease 0s;
}

#backnumber h1:hover:after{
  top:calc(50% - 13px);
  right:24px;
  width:48px;
  height:26px;
}

#backnumber h1.opened:after{
  transform: rotateX(180deg);
}

#backnumber div.monthly-list{
  border-bottom:1px solid #ccc;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.monthly-list p.loading {
  padding-top: 1.25em;
  padding-bottom: 1.25em;
}

.monthly-list p.loading:before {
  content: "";
  display: block;
  margin: auto;
  width: 30px;
  height: 30px;
  background-image: url("/images/loading.gif");
  background-size: 30px;
}

#backnumber div.monthly-list dl{
  margin:0;
  font-size:18px;
  line-height:1.4;
  border-radius: 2px;
  border-bottom:1px solid #eee;
}

.monthly-list dl *{
  padding-top:.75em;
  padding-bottom:.75em;
}
.monthly-list dl dt{
  float:left;
  margin-left:3.15%;
}

.monthly-list dl dd{
  border-top:1px solid #eee;
  padding-left: calc(6.3% + 5em);
  padding-right:3.15%;
}

.monthly-list dl dd:nth-child(2){
  border-top:none;
}

.monthly-list div{
  text-align: center;
  padding: 25px;
  line-height:1.4;
}

.monthly-list div h2{
  text-align: center;
  font-size:16px;
}

.monthly-list div form + p{
  margin-top:25px;
}

.monthly-list div p span{
  display: inline-block;
}

.monthly-list div .button{
  margin-top:20px;
}

#backnumber input[type="submit"]{
    border:none;
    background-color: #fee0ef;
}

#backnumber input[type="submit"]:hover{
    border:none;
    background-color:  #f0037f;
}

#backnumber > section ul h1{
  border-top:1px solid #ddd;
  font-size:20px;
  padding-top:1.25em;
  padding-bottom:1.25em;
  text-align: center;
  font-weight:700;
}

#backnumber  ul li h1.opened{
  border-top:1px solid #ccc;
}

#backnumber > section ul{
  display: none;
}

#backnumber > section ul h1 ~ div.monthly-list{
  display: none;
}

#backnumber > section ul h1.opened ~ div.monthly-list{
  display: block;
}


/* BOOKS */
#books{
  background-color:#f4f4f4;
  padding-top:35px;
  padding-bottom:35px;
}

#books h1{
  font-size:20px;
  font-weight:700;
  text-align: center;
}

#books ul{
  display:flex;
  justify-content: space-around;
  flex-wrap: wrap;
  -js-display:flex;
  display:-ms-flexbox;
  -ms-flex-pack:distribute;
  -ms-flex-wrap: wrap;
  font-size: 16px;
}

#books ul li{
  margin-top:25px;
  width:22.5%;
  min-width:200px;
}
#books ul li a{
  display: block;
  width:100%;
  height:100%;
  padding:20px 0px 85px;
  position: relative;
  box-sizing: border-box;
}

#books ul li img{
  display: block;
  float:none;
  margin:0 auto .75em;
}

#books ul li h2{
  font-weight: 700;
  margin-bottom:.25em;
}

#books p.amazon{
  position: absolute;
  right:0;
  left:0;
  bottom:0px;
  padding:15px 15px;
  box-sizing: border-box;
  background-color:#fff;
  border:1px solid #e9e9e9;
  border-radius:40px;
  text-align: center;
  font-size:14px;
  line-height:1;
  text-align: center;
}

#books p.amazon:before{
  content:"";
  display: block;
  width:64px;
  height:20px;
  background-image: url("/images/amazon.png");
  margin:0 auto 5px;
}

#books a:hover .amazon{
  background-color:#f0037f;
  color:#fff;
}

#books a:hover .amazon:before{
  background-image: url("/images/amazon_hover.png");
}

/* POPULAR */
#popular{
  padding-top:40px;
  padding-bottom:40px;
}

#popular > img{
  display: block;
  margin:0 auto;
  width:38px;
}

#popular h1{
  font-size:24px;
  text-align: center;
  position:relative;
}

#popular ul{
  display:flex;
  justify-content: space-around;
  flex-wrap: wrap;
  -js-display:flex;
  display:-ms-flexbox;
  -ms-flex-pack:distribute;
  -ms-flex-wrap: wrap;
}

#popular ul li{
  width:196px;
  margin-top:20px;
  margin-bottom:20px;
}

#popular ul a img:first-child{
  display:block;
  margin:0 auto;
  width:140px;
  height:140px;
  border-radius:50%;
  overflow: hidden;
  background-color: #f4f4f4 /* 丸抜きイメージの背景色 */;
}

#popular ul h2{
  margin-top:15px;
  font-size:16px;
  font-weight:700;
}

#popular ul h3{
  margin-top:8px;
  font-size:14px;
  background: none;
}

#popular ul p{
  margin-top:4px;
  font-size:14px;
  font-weight:400;
}

#popular ul li a{
  display: block;
  padding:8px;
  width:100%;
  height:100%;
  box-sizing: border-box;
  position:relative;
}

#popular ul a p.free{
  margin-top:8px;
  text-align: center;
  display: block;
  padding: .25em .25em;
  color: #f0037f;
  border: 1px solid #fee0ef;
  letter-spacing: 0.01em;
  font-weight: 700;
}

/* NOTICE */
#notice{
  padding-top:20px;
  padding-bottom: 20px;
  background-color: #f4f4f4;
  font-size: 18px;
  line-height: 1.75;
}

#notice div{
  background-color: #fff;
  padding-bottom:40px;
}

#notice h2,
#notice h3,
#notice p{
  padding-left:20px;
  padding-right:20px;
}

#notice h2{
  margin-top:40px;
  padding-top:40px;
  border-top:1px solid #eee;
  font-size:22px;
  font-weight: 700;
  text-align: center;
}

#notice div h2:first-child{
  margin-top:0px;
  border-top: none;
}

#notice h3{
  margin-top:1em;
  margin-bottom:.25em;
  text-align: center;
}
#notice h3 span{
  font-weight: 700;
  display: block;
}

#notice ul{
  display: flex;
  justify-content: center;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:center;
}
#notice ul li + li{
  margin-left:10px;
}
#notice h2 + p{
  margin-top:1em;
}

/* for mobile devices -767px ----------------------------------------*/

@media screen and (max-width:767px){
  
  #main-title img{
    position: absolute;
    display:block;
    margin:0 auto;
    width:170px;
    height:170px;
    bottom: 25px;
    right: 25px;
    z-index: 2;
    /* border-radius: 50%; */
    border-radius: 15%;
    overflow: hidden;
    /* align-items: center;
    justify-content: center; */
    margin-top: 15px;
  }
  
  /* COMMON SETTINGS */
  .narrower{
    min-width:300px;
  }

  input[type="submit"]{
      width: 100%;
      margin:10px auto 0;
      padding:18px 0;
  }

  /* POPUP COMMENTS */
  .lead{
      padding-top:15px;
      padding-bottom:15px;
  }

  .lead ul{
    width:90%;
    padding:10px;
  }

  .lead ul li{
    font-size:16px;
    text-align: left;
  }

  .lead li:last-child{
    padding-left:10px;
  }

  /* MAIN TITLE */
  #main-title{
    min-height: auto;
  }

  #main-title:after{
    height:35vw;
  }

  #main-title div{
    display: block;
    width:100%;
    /* padding-top: 35vw; */
    padding-bottom:0px;
    line-height:1.4;
    position:relative;
  }

  #main-title div > *{
    /* padding-left:4%;
    padding-right:4%; */
    padding-left:0%;
    padding-right:0%;
    box-sizing: border-box;
  }

  #main-title h1{
    font-size:22px;
    width:100%;
    box-sizing: border-box;
    line-height:1.5;
  }

  #main-title p{
    font-size:16px;
    font-weight: 400;
    margin-top:.5em;
  }

  #main-title img{
    top:1vw;
    bottom:0;
    right:5%;
    /* height:34vw!important; */
    max-height:400px;
    z-index:2;
  }

  #main-title p.free{
    text-align: center;
    margin-top:15px;
    display: block;
    padding:.5em .5em;
    color:#f0037f;
    background-color: #fff;
    border-top:1px solid #fee0ef;
    border-bottom:1px solid #fee0ef;
    letter-spacing: 0.01em;
    font-weight:700;
  }

  /* BACKNUMBER */
  #backnumber section{
    margin-top:20px;
  }

  #backnumber section > h1{
      font-size:18px;
      padding-top:25px;
      padding-bottom:25px;
  }

  #backnumber h1:after{
    top:calc(50% - 4px);
    right:15px;
    width:16px;
    height:9px;
  }

  #backnumber h1:hover:after{
    top:calc(50% - 8px);
    right:5px;
    width:32px;
    height:18px;
  }

  #backnumber div.monthly-list dl{
    font-size:16px!important;
    line-height:1.5;
  }

  .monthly-list dl dt{
    margin-left:8px;
  }

  .monthly-list dl dd{
    padding-left: calc(24px + 5em);
    padding-right:8px;
  }

  .monthly-list div{
    font-size:14px;
    padding:15px;
  }

  .monthly-list div form + p{
    margin-top:10px;
  }

  .monthly-list div .button{
    width: 100%;
    max-width: auto;
    min-width: auto;
  }



  /* BOOKS */
  #books{
    padding-top:35px;
    padding-bottom:35px;
  }

  #books h1{
    max-width:92%;
    line-height: 1.4;
  }


  #books ul li{
    margin-top:25px;
    width:38%;
    min-width:280px;
  }

  /* POPULAR */
  #popular{
    padding-top:20px;
    padding-bottom:20px;
  }

  #popular > img{
    width:30px;
  }

  #popular h1{
    margin-top:.125em;
    font-size:20px;
  }

  #popular ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    -js-display: flex;
    display: -ms-flexbox;
    -ms-flex-pack: distribute;
    -ms-flex-wrap: wrap;
  }

  #popular ul li{
    flex-basis: calc(50% - 10px);    
    margin: 10px 0;
  }

  #popular ul a img:first-child{
    width:160px;
    height:160px;
  }


  /* NOTICE */
  #notice{
    font-size: 16px;
  }

  #notice div{
    background-color: #fff;
    padding-bottom:40px;
  }

  #notice h2,
  #notice h3,
  #notice p{
    padding-left:3%;
    padding-right:3%;
  }

  #notice h2{
    margin-top:25px;
    padding-top:25px;
    font-size:20px;
  }

  #notice h3{
    margin-top:1em;
    margin-bottom:.25em;
    text-align: center;
    line-height:1.4;
  }
  #notice h3 span{
    font-weight: 700;
    display: block;
  }

  #notice ul{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    -js-display: flex;
    display: -ms-flexbox;
    -ms-flex-pack:center;
    -ms-flex-wrap: wrap;
  }
  #notice ul li + li{
    margin-left:10px;
  }
  #notice h2 + p{
    margin-top:1em;
  }

}
/* for mobile devices -500px -----------------------------------------*/
@media screen and (max-width:500px){
  #main-title h1{
    font-size: 20px;
    width: 210px;
    padding:30px;
    margin-top: 15px;
  }

  #main-title div > *{
    /* padding-left:3%;
    padding-right:3%; */
    padding-left:0%;
    padding-right:0%;
    margin-left: 10px;
  }

  input[submit]{
    font-size:14px;
    width:96%;
  }
}