@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

*{box-sizing: border-box;}

body{
  font-family:"Noto Sans JP", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
  background-color: #F0F0F0;
  color: #333;
  font-size:1rem;
  line-height:1.85;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; 
  word-wrap: break-word;
}
@media screen and (max-width:780px) {
  body{
    font-size: 0.8rem;
  }
}
p{
  line-height: 22px;
}

ul{
	margin: 0;
	padding: 0;
	list-style: none;
}
nav ul{
  display: flex;
	justify-content: center;
}
li a{
  display: block;
  font-size: 12px;
	padding: 4px 10px 0;
	transition: all 0.3s;
}
@media screen and (max-width:780px){
	nav{
		padding: 0;
	}
	
	nav ul{
		display: block;
	}
}

a{
  color: #000;
  text-decoration: none;
  outline: none;
}

.title {
  color: #02ccba;
}
h1{
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.2em;
}
h2{
  text-align: center;
  line-height: 1.5;
  margin-bottom: 5px;
}
h3{
  text-align: center;
  line-height: 1.5;
  margin-bottom: 5px;
}
h2 span, h3 span{
  font-size: 12px;
  display: block;   
}
.title-bar {
  margin: 0 auto;
  margin-bottom: 30px;
  width: 70px;
}
main h2:after {
  background-color: #4cbf74;
  border-radius: 5px;
  content: "";
  display: block;
  margin: 8px auto 30px;
  height: 7px;
  width: 120px;
}

.content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.flexbox-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.flexbox-item {
  padding: 0px 10px;
  width: 50%;
}
@media screen and (max-width:780px) {
  .flexbox-item {
    width: 100%;
  }
}
.flexbox-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* header */
#header {
  background-color: white;
  display: flex;
	justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  height: 50px;
	width: 100%;
  position: fixed;
}
#header .header-menu {
  float: left;
}
#header .btn {
  font-weight: normal;
}
.title-img {
  height: 24px;
  margin-top: 10px;
}
.evidence-based-img {
  height: 15px;
  margin: 0 0 5px 8px;
}

/* list */
@media screen and (max-width:780px) {
  #nav-area{
    position:fixed;
    z-index: 999;
    top: 0;
    right: -120%;
    width: 300px;
    height: 100vh;
    background: #fff;
    transition: all 0.6s;
  }
  
  /*アクティブクラスがついたら位置を0に*/
  #nav-area.panelactive{
    right: 0;
  }
  
  /*ナビゲーションの縦スクロール*/
  #nav-area.panelactive #nav-list{
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /*ナビゲーション*/
  #nav-area ul {
    margin: 100px auto 50px auto;
  }
  
  /*リストのレイアウト設定*/
  #nav-area li{
    list-style: none;
    text-align: center; 
  }
  #nav-area li a{
    padding: 8px;
    margin: 16px auto;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
}

/* btn */
.nav-openbtn{
  display: none;
}

@media screen and (max-width:780px) {
  .nav-openbtn{
    display: block;
    position:fixed;
    z-index: 9999;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height:50px;
  }

  /*ボタン内側*/
  .nav-openbtn .openbtn-area{
    transition: all .4s;
  }

  .nav-openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    width: 45%;
    border-radius: 2px;
    background: #000;
  }

  .nav-openbtn span:nth-of-type(1) {
    top:15px;	
  }
  .nav-openbtn span:nth-of-type(2) {
    top:23px;
  }
  .nav-openbtn span:nth-of-type(3) {
    top:31px;
  }
  /*activeクラスが付与されると
  線と周りのエリアが回転して×になる*/
  .nav-openbtn.active .openbtn-area {
    transform: rotateY(-360deg);
  }

  .nav-openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
  }

  .nav-openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .nav-openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
  }
}

/* top-area */
#header .image-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-image {
  width: 100%;
}


/* main-area */
.left-content {
  background-color: white;
  border-radius: 0 30px 30px 0;
  box-shadow: 1px 1px 2px gray;
  margin: 30px 50px 30px 0;
  padding: 20px 20px 30px 30px;
}
.right-content {
  background-color: white;
  border-radius: 30px 0 0 30px;
  box-shadow: 1px 1px 2px gray;
  margin: 30px 0px 30px 50px;
  padding: 20px 30px 30px 20px;
}
.left-content .content{
  padding-left: 60px;
}
.right-content .content{
  padding-right: 60px;
}
@media screen and (max-width:780px) {
  .left-content {
    margin: 30px 30px 30px 0;
  }
  .right-content {
    margin: 30px 0px 30px 30px;
  }
  .left-content .content{
    padding-left: 40px;
  }
  .right-content .content{
    padding-right: 40px;
  }
}

/* news */
.twitter {
  margin: 30px auto;
  height: 200px;
  max-width: 500px;
  overflow: scroll;
}

/* service */
.service-left {
  background-color: #4cbf74;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin: 0 auto;
  padding: 15px;
  max-width: 300px;
}
#service p {
  font-size: 14px;
  padding: 0 10px;
}

/* howto */
#howto {
  display: flex;
  justify-content:space-between;
  align-items: center;
  flex-wrap: wrap;
}
#howto h2 {
  font-size: 1.17em;
}

.img-wrap {
  padding-top: 40px;
}
#howto .content p {
  font-size: 14px;
}
#howto .content .text {
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
#howto .btn-box {
  margin: 10px auto;
}
#howto .comment {
  font-size: 12px;
  line-height: 14px;
}
.image-content-title {
  font-weight: bold;
  padding-top: 20px;
}
.line-img {
  width: 150px;
}
.qr-img {
  margin-top: 20px;
  width: 80px;
}
#howto .howto-img {
  width: 100%;
}
@media screen and (max-width:780px) {
  #howto .content {
    margin-bottom: 30px;
    width: 100%;
  }
  #howto .content .text {
    font-size: 10px;
  }
  #howto .howto-img {
    display: block;
    margin: 30px auto 0;
    max-width: 300px;
  }
}

/* about */
.about-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#about .content {
  padding: 40px;
}
#about .icon {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  width: 220px;
}
#about .icon p {
  font-size: 12px;
}
#about .icon img {
  width: 150px;
}
#about .icon .balloon {
  margin-top: -35px;
}
.balloon-text {
  font-size: 12px;
  margin-top: -64px;
  z-index: 1;
}
#about .text {
  border-top: 8px solid #333;
  border-bottom: 8px solid #333;
  width: 60%;
}
#about dl {
  line-height: 24px;
}
#about dt {
  display: inline;
  font-weight: bold;
}
#about dd {
  display: inline;
  font-weight: normal;
  margin: 0;
}
.btn2 {
  text-decoration: none;
  background: #E555D7;
  border-radius: 25px;
  box-shadow: 1px 1px 2px gray;
  color: #F0F0F0;
  font-size: 12px;
  font-weight: bold;
  padding: 1px 20px 3px;
  text-align: center;
}
#about .text img {
  margin-top: 10px;
  width: 100%;
}
@media screen and (max-width:780px) {
  #about .icon {
    margin: 0 auto;
  }
  #about .text {
    width: 100%;
  }
  .btn2 {
    display: block;
  }
}

/* contact */
#contact {
  color: #fff;
  max-width: 600px;
}
.contact-background {
  background: url(../img/askyouuquestion_background.jpg);
  background-repeat: no-repeat;
}
.inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 35px;
}
#contact .content p:first-letter {
  font-size: 30px;
}
#contact .form-title{
  border-bottom: 1px solid #fff;
  margin-bottom: 16px;
  padding: 2px;
  text-align: center;
}
#contact .form-list{
  width:100%;
  max-width: 700px;
  margin: 0 auto;
}
#contact .form-list label {
  display: block;
  margin: 10px 0 3px;
}
#contact .form-list .inline {
  display: inline;
}
#contact .form-list input[type='text'] , 
#contact .form-list input[type='email'] , 
#contact .form-list textarea{
	width: 100%;
  border: 1px solid #666;
  border-radius: 16px;
	background: #fff;
	padding: 5px 10px;
  resize: vertical;
	-webkit-appearance:none;
	   -moz-appearance:none;
	        appearance:none;
}
#contact .form-list .radio-label {
  margin-right: 10px;
}
#contact .form-list select {
  border-radius: 16px;
  padding: 5px 10px;
  width: 230px;
}
#contact .form-list textarea {
  height: 200px;
}
.submit-area {
  margin: 50px 0 10px;
}
.submit-area input {
  background: #4cbf74;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  color: #fff;
  display: block;
  margin: 0 auto;
  padding: 5px 20px;
}
.submit-area p {
  font-size: 10px;
  line-height: 16px;
  margin-top: 20px;
  text-align: center;
}

/* footer */
#footer {
  padding: 10px 0 50px;
  text-align: center;
}
#footer .footer-link{
  display: flex;
  justify-content: space-around;
  padding: 40px 0;
}
#footer span {
  font-size: 12px;
  text-align: center;
}
.top-footer a {
  color: #333;
}

/* info-page */
.info-page main{
  background-color: #4cbf74;
  padding: 100px 60px;
}
.info-page .inner {
  background-color: #fff;
  margin: 0 auto;
}
.info-page #footer{
  background-color: #fff;
}
@media screen and (max-width:780px) {
  .info-page main {
    padding: 95px 40px;
  }
  .info-page .inner {
    padding: 20px;
  }
}

/* ボタン共通設定 */
.btn{
  display: block;
  background: #4cbf74;
  border-radius: 25px;
  box-shadow: 2px 2px 4px gray;
  color: white;
  font-weight: bold;
  margin: 0px auto;
  padding: 4px 10px;
  max-width: 200px;
  text-align: center;
  outline: none;
}

#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background:#4cbf74;
	width: 60px;
	height: 50px;
	color: #fff;
	text-align: center;
	font-size:0.6rem;
	transition: all 0.3s;
}

#page-top a:hover{
	background: #777;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom: 0;
	z-index: 2;
	opacity: 0;
}

.fadeIn{
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnime{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

