/* MAIN VISUAL */

div#visual{
  width:100%;
  overflow: hidden;
  background-color: #D7E9F6;
}

#visual div.slider,
#visual div.slider div{
  width:100%;
  height:260px;
}

#visual .slider div a {
  width:100%;
  height:100%;
  display:block;
  background-position: top center;
  color: transparent;
}

#visual .foomii-dots button{
  border-color:#000;
}

/* LOGIN BUTTONS */
div#login{
  padding-top:28px;
  padding-bottom:28px;
}
#login ul{
  display: flex;
  justify-content:space-around;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:distribute;
}

#login ul li{
    width:41%;
    max-width:300px;
}

#login .mobile-only{
  display:none;
}

/* ABOUT */
#about{
  padding-top:40px;
  padding-bottom:40px;
  /* border-top:1px solid #eee; */
}

#about header img{
  display: block;
  margin:0 auto;
  width:96px;
}
#about header{
    line-height:1.5;
}
#about header h1{
  margin-top:15px;
  font-size:24px;
}

#about header p{
  margin-top:4px;
  font-size:18px;
  font-weight:400;
  text-align:center;
}

#about h1 span,
#about p span{
  display:inline-block;
}

#about ul#recommend{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:distribute;
  -ms-flex-wrap: wrap;
}

#about ul#recommend li{
  width:196px;
  margin-top:40px;
}

#about ul#recommend a img:first-child{
  display:block;
  margin:0 auto;
  width:180px;
  height:180px;
  border-radius:50%;
  overflow: hidden;
  background-color: #f4f4f4 /* 丸抜きイメージの背景色 */;
}

#about ul#recommend h2{
  margin-top:15px;
  font-size:16px;
  font-weight:700;
}

#about ul#recommend p{
  margin-top:4px;
  font-size:14px;
  font-weight:400;
}

#about ul#recommend li a{
  display: block;
  padding:8px;
  width:100%;
  height:100%;
  box-sizing: border-box;
  position:relative;
}

#about ul#recommend 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;
}

#about div{
  margin-top:40px;
  text-align: right;
}

#about .button{
  width:240px;
}

/* SEARCH BOX */
#search{
  padding-top:40px;
  padding-bottom:40px;
  border-top:1px solid #eee;
  text-align:center;
}
#search h1{
  font-size:24px;
  font-weight:400;
}

#search h2{
  font-size:18px;
}

#search .gsc-search-box{
    max-width:640px;
    margin:0 auto;
}

#search .gsc-control-cse{
  padding:10px 4%;
  box-sizing: border-box;
}

#search div.gsc-control-wrapper-cse{
  min-width:290px;
}

#search div.gsc-input-box{
    height:60px;
    border:none;
    background-color:#f4f4f4;
    border-radius: 30px 0 0 30px;
}


#search div.gsc-input-box table,
#search div.gsc-input-box .gsib_a{
  background-color: transparent;
  height:60px;
}

#search .gsc-search-box-tools .gsc-search-box .gsc-input {
  padding-right:0!important;
}

#search div.gsc-input-box .gsib_a{
  padding-left:30px;
  box-sizing: border-box;
}


#search div.gsc-input-box input{
  background-color: transparent!important;
  font-size:24px;
  margin:0;
}

#search div.gsc-input-box .gsib_a{
  padding:0 30px;
}

#search div.gsc-input-box .gsib_b{ /* GAP between INPUT and BUTTON */
  width:0!important;
  padding:0!important;
}

#search div.gsc-input-box .gsst_a .gscb_a{
  color:#317AAC;
  font-size:36px;
  line-height:36px;
}


#search .gsc-search-button{ /* search button */
  margin-left:0;
}
#search .gsc-search-button-v2{ /* search button */
  height:60px;
  border:none;
  background-color:#317AAC;
  border-radius: 0 30px 30px 0;
}

#search .gsc-search-button-v2 svg{ /* search button */
  width:30px!important;
  height:30px!important;
}

#search ul.tab{
  margin-top:20px;
  display: flex;
  justify-content:center;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:center;
}

#search ul.tab li a{
  display:block;
  background-color:#f4f4f4;
  padding:15px;
  font-size:18px;
  font-weight:700;
  border-radius: 2px;
  border:2px solid #f4f4f4;
  box-sizing: border-box;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.2);

}

#search ul.tab li a:hover{
  border:2px solid #317AAC;
}

#search ul.tab li + li{
  margin-left:15px;
}

/* NEWS HEADLINES */
#headlines{
    /* padding-top:40px; */
    padding-bottom:40px;
    border-top:1px solid #eee;
    background-color: #eee;
}

#headlines h1{
  letter-spacing:0.12em;
  margin:40px auto 40px;
}
#headlines ul{
  margin:0 auto;
}

#headlines ul li{
  clear:both;
}

#headlines ul h2,
#headlines ul h3,
#headlines ul p{
    padding-left:90px;
}

#headlines ul h2{
  font-size:18px;
  font-weight:700;
}

#headlines ul h3{
  background: none;
  margin-top:4px;
}

#headlines ul p{
  font-size:14px;
  margin-top:4px;
}

#headlines ul img{
  float:left;
  border-radius: 50%;
  height: 70px;
  width: 70px;
  overflow: hidden;
  background-color: #f4f4f4; /* 丸抜きイメージの背景色 */
}

#headlines ul li a{
  display: block;
  padding:12px 0;
}

/* STEP */
#steps{
  color:#fff;
  background-color: #317AAC;
  background:-moz-linear-gradient(150deg, #317AAC, #D8E9F5);
  background:-o-linear-gradient(150deg, #317AAC, #D8E9F5);
  background:linear-gradient(150deg, #317AAC, #D8E9F5);
  padding-top:55px;
  padding-bottom:30px;
}

#steps h1{
  font-size:36px;
  letter-spacing: 0.1em;
  font-weight:400;
}

#steps ul#procedure{
  margin-top:25px;
  display: flex;
  justify-content: space-around;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:distribute;
}

ul#procedure > li{
  width:425px;
  background-color: #fff;
  color:#222;
  font-size:18px;
  padding-bottom:30px;
}

ul#procedure > li img{
  display: block;
  margin:35px auto 0;
}

@media (max-width: 767px) {
ul#procedure > li{
  width:300px;
  background-color: #fff;
  color:#222;
  font-size:18px;
  padding-bottom:30px;
}
}

/* ul#procedure > li:nth-child(2){
  width:21px;
  background-color: transparent;
  position:relative;
} */

/* ul#procedure > li:nth-child(2) img{
  position:absolute;
  top: calc( 50% - 17px);
}

ul#procedure > li:nth-child(3){
  position:relative;
}

ul#procedure > li:nth-child(3) img{
  position:absolute;
  top:70%;
  left:75%;
} */

#procedure > li h2{
  background-color: #D8E9F5;
  /* height:70px; */
  /* line-height:70px; */
  padding:20px 15px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color:#317AAC;
}

ul#procedure > li p{
  padding:30px 30px 5px;
  text-align: left;
}
#procedure li ol{
  padding:0 30px 0;
}


#procedure li ol li{
  width:100%;
  font-size:20px;
  font-weight:700;
  width:100%;
}

#procedure li ol li + li{
  margin-top:4px;
}


#steps dl{
  margin-top:35px;

}
#steps dl dt{
  font-size:22px;
  font-weight:400;
}
#steps dl dd{
  margin-top:0.25em;
  font-size:18px;
}

#steps dl dd + dt{
  margin-top:2em;
}

#steps dl dd a{
  color:#fff;
  text-decoration: underline;
}

#steps ul#go_next{
  margin:60px auto 0;
  display: flex;
  justify-content: center;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:center;
}
#steps ul#go_next li + li{
  margin-left:15%;
}
#steps #go_next li{
  text-align: center;
}
#steps #go_next a.button{
  display:block;
  margin:10px auto 40px;
}

/* TOPICS */

div#topi-twi{
  background-color:#f4f4f4;
  padding-top:40px;
  padding-bottom:40px;
}
#topi-twi div{
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  -js-display: flex;
  display: -ms-flexbox;
  -ms-flex-pack:justify;
  -ms-flex-align: stretch;
}

#topi-twi #topics,
#topi-twi #twitter{
  padding:25px 3% 0;
  box-sizing: border-box;
  background-color:#fff;
}

#topi-twi h1{
    margin-top:10px;
}

#topi-twi #topics{
  width: calc(100% - 350px - 3.5%);
  float:left;
}

#topics dl{
  margin-top:12px;
}

#topics dl *{
  padding-top:1em;
  padding-bottom:1em;
}
#topics dl dt{
  clear:left;
  float:left;
}
#topics dl dd{
  padding-left:calc(5em + 25px);
  border-bottom:1px solid #eee;
}

#topics a.button{
  width:240px;
  margin:25px auto;
}

#twitter{
  width:350px;
  float:right;
}

#twitter > h1 img{
  width:50px;
}
/* for mobile devices -767px ----------------------------------------*/
@media screen and (max-width:767px){

  /* MAIN VISUAL */
  #visual div.slider,
  #visual div.slider > div,
  #visual div.slider > div a{
    height:50vw;
  }

  #visual div.slider div a{
    background-size:cover;
  }
  /* LOGIN BUTTONS */
  div#login{
    padding-top:15px;
    padding-bottom:20px;
  }
  #login .mobile-only{
    display:block!important;
  }

  /* ABOUT */
  #about{
    padding-top:30px;
    padding-bottom:30px;
  }
  #about header{
    line-height:1.4;
  }

  #about header img{
    width:16.5%;
    min-width:62px;
    max-width: 96px;
  }
  #about header h1{
    margin-top:5px;
    font-size:20px;
  }

  #about header p{
    margin:6px auto 0;
    font-size:16px;
  }

  #about ul#recommend li{
    width:300px;
    line-height:1.5;
  }

  #about .button{
    width:100%;
  }

  /* SEARCH BOX */
  #search{
    padding-top:30px;
    padding-bottom:0px;
  }
  #search h1{
    font-size:20px;
  }

  #search h2{
    font-size:16px;
  }

  #search div.gsc-input-box .gsib_a{
    padding-left:20px;
  }

  #search .gsc-search-button-v2{ /* search button */
    width:60px;
    padding:0;
  }

  #search .gsc-search-button-v2 svg{ /* search button */
    width:24px!important;
    height:24px!important;
  }

  #search ul.tab{
    margin-top:15px;
  }

  #search ul.tab li a{
    font-size:16.8px;
    font-weight: 400;
  }

  #search #search-genre{
    margin-top:40px;
    display:block;
  }
  #search-genre div.genre{
    margin-top:20px;
  }

  /* NEWS HEADLINES */
  #headlines{
      padding-bottom:20px;
  }

  #headlines h1{
    margin:0 auto 15px;
  }

  #headlines ul{
    line-height: 1.5;
  }

  #headlines ul li{
  /*  border-bottom:1px solid #eee; */
  }

  #headlines ul h2,
  #headlines ul h3,
  #headlines ul p{
      background: none; /* override */
      padding-left: calc(3vw + 70px);
  }

  #headlines ul h2{
    font-size:16px;
  }

  #headlines ul h3{
    margin-top:6px;
  }

  #headlines ul p{
    margin-top:6px;
  }

  #headlines ul li a{
    padding:20px 0;
  }

  /* STEP */
  #steps{
    padding-top:40px;
  }

  #steps h1{
    font-size:24px;
  }

  #steps ul#procedure{
    display: block;
    margin-top:30px;
  }

  ul#procedure > li{
    display: block;
    margin:30px auto;
  }

  /* ul#procedure > li:nth-child(2){
    width:100%;
    height:21px;
    padding-bottom:0;
    text-align: center;
  }

  ul#procedure > li:nth-child(2) img{
    transform: rotate(90deg);
    position: relative;
    top:0;
  }

  ul#procedure > li:nth-child(3) img{
    position:absolute;
    top:80%;
  } */


  #steps dl dt{
    font-size:18px;
  }
  #steps dl dd{
    margin-top:.25em;
    font-size:16px;
  }


  #steps ul#go_next{
    width:100%;
    display: block;
    float:none;
  }

  #steps ul#go_next li + li{
    margin-left:0;
  }

  #steps #go_next li{
    display: block;
    width:100%;
    padding-bottom:40px;
  }

  #steps #go_next a.button{
    float:none;
    margin:10px auto 0px;
  }

  /* TOPICS */

  div#topi-twi{
    background:-moz-linear-gradient(180deg, #f4f4f4, #e5f7fd);
    background:-o-linear-gradient(180deg, #f4f4f4, #e5f7fd);
    background:linear-gradient(180deg, #f4f4f4, #e5f7fd);
    filter:progid:DXImageTransform.Microsoft.Gradient(#f4f4f4, #e5f7fd); /* -IE9 */
    padding-top:4vw;
    padding-bottom:4vw;
  }

  #topi-twi div{
      display:block;
  }

  #topi-twi #topics,
  #topi-twi #twitter{
    display:block;
    float:none;
    width:100%;
    padding:25px 0 0;
  }

  #topi-twi #topics{
    padding-bottom:15px;
  }

  #topi-twi h1{
    margin-top:0;
  }
  #topics dl{
    line-height:1.5;
  }

  #topics dl dt{
    padding-left:1.56vw;
  }

  #topics dl dd{
      padding-left:calc(5em + 4vw);
      padding-right:5px;
  }

  #topics a.button{
    width:92%;
    font-size:18px;
    margin:15px auto 0;
  }

  #twitter{
      margin-top:4vw;
      padding-bottom:0px;
  }

  #twitter > h1 img{
    width:11vw;
    max-width:50px;
    margin-bottom:5px;
  }
  #twitter iframe.twitter-timeline{
    float:none;
    margin-left:calc(50% - 150px);
  }

}

/* for mobile devices -500px -----------------------------------------*/
@media screen and (max-width:500px){
  #about header h1{
    font-size:18px;
  }
  #search .gsc-control-cse{
    padding:10px 3%;
  }
  #topi-twi div.narrow{
    padding:0;
    width:96%;
  }
  #topics{
    background-color: transparent;
  }
  #topics dl dt{
    float:none;
    padding:1em 3% 0;

  }
  #topics dl dd{
    padding:0 8px 1em;
  }
}