@charset "utf-8";

/* lead */

#lead{
  position: relative;
  height:95vh;
}
#lblue {
      height: 90vh;
}
#lblue:after {
	content: ".";
	height: 0px;
	clear: both;
	display: block;
	visibility: hidden;
}
#slider-area{
  width:70%;
  height: 70vh;
  position: relative;
  top: 6%;
  left:15%;    
}
#slider-area #slider{
  width:100%;
  height:70vh;
}

@media screen and (max-width:768px) {
  #slider-area {
      width: 74%;
      height: 70vh;
      left: 0;
      top: 100px;
      }
      #slider-area #slider{
      height: 70vh;
  }
}

#lead h2.heading{
   position: absolute;
  top:50px;
   right:10%;
}

#lead .lead{
   position: absolute;
  top:50px;
   right:4%;
  font-size: 2rem;
  letter-spacing: 0.2em;
  line-height: 1.6;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  white-space: nowrap;
  padding: 40px 0 0 0;
}

#lead .lead span{
   display: block; 
  padding: 100px 0 50px 0;
}

.lead {
  background:#64c5ea;
  color: #fff;
}

/* new */

#news{
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 40px;
  border: 5px solid #b3e3f5;
  background:#fff;
}

#news h2{
  position: relative;
  font-size:1.2rem;
  margin: 0 0 30px 0;
}

#news h2::before{
  content:'';
  position: absolute;
  width:30px;
  height: 1px;
  background: #64c5ea;
  left:0;
  bottom:-5px;
}

#news li{
  margin:0 0 10px 0;
}

#news li a{
  transition: all .3s;
}

#news li a:hover{
  background:#efefef;
}

#news li time{
  display: inline-block;
  padding:0 20px 0 0;  
  font-size:0.8rem;
  color: #999;
}

@media screen and (max-width:1200px) {
  #lead .lead{
      font-size:1.8rem;
      right: 2.5%;
  }
  #news{
      width:50%;
  } 
}

@media screen and (max-width:960px) {
  #lead .lead{
      font-size:1.6rem;
      right: 3%;
  }
  #news{
      padding: 20px 30px;
  }
  #news li time{
      display: block;
  }  
}

@media screen and (max-width:768px) {
      
  #lead h2.heading{
      top: 160px;
  }
  #lead .lead{
      right:7%;
      top:50px;
  }
  
  #news{
      width:100%;
      bottom:-50px;
  }
  }
  
  @media screen and (max-width:550px) {
  
  #lead .lead {
      font-size: 1.3rem;
      right:5%;
  
  } 
  }
  
  @media screen and (max-width:350px) {
  #lead .lead {
      right:2%;
  } 
      
}
  
/* service */

#service{
  position: relative;
  text-align: center;
  padding:50px 0 0 0;
  
}
#service p {
  padding: 0 5%;
  text-align: left;
}

#service header{
  background:#1265b2;
  color: #fff;
  width:90%;
  padding: 50px 0 100px 0;
}

#service header h2{
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
}

#service header p{
  margin: 0 0 30px 0;   
}


#service .service-area{
  background:#fff;
  padding: 70px;
  width:70%;
  position: relative;
  top:-50px;
  left: 10%;
}

#service .service-area ul{
  display: flex;
  flex-wrap: wrap;
  justify-content:space-around;
/* ?X?}?z?\???p?BflipDown???w???????????e?v?f???w????????????????????????*/
  transform:  translate3d(0, 0, 0);
}

#service .service-area ul li{
  opacity: 0;
  width:22%;
  padding: 20px 0 20px 0;
}

.service-area ul li a{
  display: table-cell;
  width:22%;
  height: 110px;
  vertical-align: middle;
}
.service-area ul li.nigyou {
  padding: 10px 0 10px 0;
}

@media screen and (max-width:960px) {
  #service header{
      width:100%;
  }
  #service .service-area{
      width:80%;
      left:10%;
      padding: 80px 20px 30px 20px;
  }
  #service .service-area ul li{
    width:40%;
    }   

  #service header p br{
    display:block;   
  }
}

@media screen and (max-width:768px) {
  #service{
      padding: 100px 0 0 0;
  }
}

@media screen and (max-width:550px) {
    #service .service-area{
    width:90%;
    left:5%;
    }
}

@media screen and (max-width:400px) {
    #service .service-area{
    width:100%;
    left:0;
    font-size: 0.9rem;
  }
  
}


/* message */

#message{
  position: relative;
  padding:0 70px;
  
}

#message h2{
  position: absolute;
  right:45%;
  z-index: 2;
}

.message-area{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  
}

.message-img{
  background:url("/greeting/img/keshiki.jpg") no-repeat center;
  background-size: cover;
  height: 50vh;
  width:48%;
}

.message-content{
  display: flex;
  justify-content: center;
  padding: 150px 0 0 0;
  width:45%;
}

.message-box{
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

.message-content h3,
.message-content p,
.message-content .message-btn{
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;    
  text-orientation: upright;
  height: 20em;
  letter-spacing: 0.1em;
}

.message-content h3{
  font-size:1.5rem;
  line-height: 2.5;
  background-color: #c4ecfc;
  margin: -100px 0 0 0;
  padding: 2%;
  color: #41ade5;
  padding: 50px 0 0 0;
}

_:-ms-lang(x)::-ms-backdrop, .message-content h3{/*IE11用ハック*/
  width:30%;
}

.message-content p{
  line-height: 3.5;
  margin: 0 0 0 50px;
}

_:-ms-lang(x)::-ms-backdrop, .message-content p{/*IE11用ハック*/
  width:60%;
}

_:-ms-lang(x)::-ms-backdrop, .message-content .message-btn{/*IE11用ハック*/
  width:10%;
}


@media screen and (max-width:1280px) {

.message-content h3{
  line-height: 2;
  margin: -30px 0 0 10px;
  padding: 30px 0 0 0;
  
}

.message-content p{
  line-height: 3;
  margin: 0 0 0 20px;
}
  
}

@media screen and (max-width:1000px) {
.message-content p{
  line-height: 2;
}
}


@media screen and (max-width:768px) {
#message{
  padding: 0 30px;
}
  
#message h2 {
  position: relative;
  right: inherit;
  top: 40px;
}
  .message-img,
  .message-content{
      width:100%;
  }
  
  .message-img{
      height:40vh;
  }

  .message-content{
  padding:50px 0 0 0;
  }
  
.message-content h3,
.message-content p,
.message-content .message-btn{
  -ms-writing-mode: lr-tb;
  -webkit-writing-mode: horizontal-tb;
  writing-mode: horizontal-tb;
  height: inherit;
  margin: 0 0 50px 0;
}
  
_:-ms-lang(x)::-ms-backdrop, .message-content h3,
_:-ms-lang(x)::-ms-backdrop, .message-content p,
_:-ms-lang(x)::-ms-backdrop, .message-content .message-btn{/*IE11用ハック*/
  width:100%;
}
  
.message-content h3{
  text-align: center;
  font-size: 1.2rem;

}
  
.message-box{
  display: block;
}
  
.message-box .btn{
  padding: 10px;
  display: block;
}
    
.message-content h3{
  line-height: 2;
  margin: 0px 0 0 0;
  padding: 0px 0 0 0;
  
}  
}

@media screen and (max-width:430px) {
  .message-img{
      height:20vh;
  }
}

@media screen and (max-width:370px) {

.message-content p br{
  display: none;
  }
}

