@charset "UTF-8";

*,*::before,*::after{margin: 0;padding: 0;box-sizing: border-box;}
ul {list-style: none;}
a{text-decoration: none;}
img{vertical-align: bottom;max-width: 100%;}

body{
    font-family: 'Rubik', sans-serif;
}
.container{
  width: 100%;
  margin: 0 auto;
  padding: 35px;
}
@media (min-width:768px){
.container{
    width: 1200px;
    margin: 0 auto;
}}

/* -----------------------------------
ヘッダー設定
------------------------------------ */
.header{
  display: flex;
  justify-content: space-between;
  line-height: 10px;
  margin-top: 40px;
}

.tit h1 {
  position: relative;
}
.tit h1:before{/*疑似要素*/
  position: absolute;
  content: '福祉用具貸与事業所';
  top: -25px;
  left: 20px;
  color: #000;
  font-size: 14px;
}
.tit > p{
  font-size: 12px;
  padding: 0 0 0 50px ;
}

.tit h1{
  font-size: 20px;
  background-image: url(../img/mlc-logo.webp);
  background-repeat: no-repeat;
  background-position: center left;
  background-size: 65px;
  padding: 10px 10px 15px 55px;
}


@media (min-width:768px){
.header{
    display: flex;
    justify-content: space-between;
    line-height: 20px;
    margin-top: 50px;
}

.tit h1 {
    position: relative;
  }
  .tit h1:before{/*疑似要素*/
    position: absolute;
    content: '福祉用具貸与事業所';
    top: -25px;
    left: 20px;
    color: #000;
    font-size: 16px;
  }
.tit > p{
    font-size: 16px;
    padding: 0 0 0 60px ;
}

.tit h1{
    font-size: 30px;
    background-image: url(../img/mlc-logo.webp);
    background-repeat: no-repeat;
    background-position: center left;
    background-size: 65px;
    padding: 10px 10px 15px 55px;
}
}
/* ヘッダーここまで */


/*-----------------------------------------
  ハンバーガー設定   
-----------------------------------------*/
#burger{
  position: fixed;
  width: 50px;
  height: 40px;
  background-color: rgb(124, 255, 255, 0.9);
  top: 10px;
  right: 0px;
  z-index: 1;
  /* レイヤーの上へ持っていく */
  border-radius: 50%;
}
#burger span{
  position: absolute;
  width: 60%;
  border-bottom: 3px solid #000;
  top: 50%;
  left: 20%;
  transition: 0.3s;
}
#burger span:nth-child(1){
  top: 30%;
}
#burger span:nth-child(3){
  top: 70%;
}

#burger.active span:nth-child(1){
  transform: rotate(225deg);
  top: 50%;
  /* width: 40%; */
}
#burger.active span:nth-child(2){
  opacity: 0;
  /* 透明になる */
  /* width: 60%; */
}
#burger.active span:nth-child(3){
  transform: rotate(-225deg);
  top: 50%;
}
#burger > p{
position: relative;
}
#burger p:before{/*疑似要素*/
position: absolute;
content: 'メニュー';
top: 45px;
right: 5px;
/* left: 10px; */
color: #000;
font-size: 8px;
font-weight: bold;
}

@media (min-width:768px) {
#burger{
    position: fixed;
    width: 90px;
    height: 70px;
    background-color: rgb(124, 255, 255, 0.9);
    top: 10px;
    right: 10px;
    z-index: 1;
    border-radius: 50%;
  }
  #burger span{
    position: absolute;
    width: 60%;
    border-bottom: 3px solid #000;
    top: 50%;
    left: 20%;
    transition: 0.3s;
  }
  #burger span:nth-child(1){
    top: 30%;
  }
  #burger span:nth-child(3){
    top: 70%;
  }
  
  #burger.active span:nth-child(1){
    transform: rotate(225deg);
    top: 50%;
  }
  #burger.active span:nth-child(2){
    opacity: 0;
  }
  #burger.active span:nth-child(3){
    transform: rotate(-225deg);
    top: 50%;
}
#burger > p{
  position: relative;
}
#burger p:before{
  position: absolute;
  content: 'メニュー';
  top: 75px;
  left: 13px;
  color: #000;
  font-size: 18px;
  font-weight: bold;
}
}

/* ----------------------------------
nav設定
----------------------------------- */
.nav-s{
  z-index: 10000;
  position: fixed;
  right: 0px;
  top: 75px;
  width: 100%;
  background-color: rgb(124, 255, 255,1);
  text-align: center;
  display: none;
}
.nav-s li{
  height: 80px;
  color:#fff;
  text-align: center;
  line-height: 80px;
}
.nav-s li:not(:last-child){
  border-bottom: 1px solid #fff;
}
.nav ul{
  display: none;
}

@media  (min-width:768px){
#burger {
  display: none;
}
.nav{
  background-color: #fff;
} 
.nav ul{
  display: flex;
}
.nav li{
  padding: 3px 18px; 
  border-left: 1px dotted #aaa;
}
.nav li:last-child{
  border-right: 1px dotted #aaa;
}
li a{
    display: block;
    line-height: 30px;
    padding: 10px 5px 3px 5px; 
    /* aタグの文字の両端の内側の余白を広げる */
    font-size: 18px;
    color: #000; 
}
.nav a{
    position: relative;
   
  } 
.nav a:after{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    content: '';
    width: 0;
    height: 4px; /*下線の太さ*/
    /* background-color: #0000ee; */
    background-color: #007bff;
    transition: .3s; /*アニメーション速度*/
  }
.nav a:hover:after {
    width:100%;
}   
}
/* navここまで */


/* -------------------------------------------
main画像設定
----------------------------------- */
.main_image{
  max-width: 100%;
}
.main_image li{
  height: 200px;
  /* 背景画像を表示には、高さが必要（450pxに設定） */
}
.main_image li:nth-of-type(1){
  background:url(../img/melifecarenew.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(2){
background:url(../img/care.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(3){
background:url(../img/chair-care.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(4){
  background:url(../img/main02.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(5){
  background:url(../img/main03.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(6){
  background:url(../img/main04.jpg) no-repeat center/cover;
}

@media  (min-width:768px){
.main_image{
    margin-top: 0px;
}
.main_image li{
    height: 500px;
    /* 背景画像を表示には、高さが必要 */
}
.main_image li:nth-of-type(1){
    background:url(../img/melifecarenew.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(2){
  background:url(../img/care.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(3){
  background:url(../img/chair-care.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(4){
    background:url(../img/main02.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(5){
    background:url(../img/main03.jpg) no-repeat center/cover;
}
.main_image li:nth-of-type(6){
    background:url(../img/main04.jpg) no-repeat center/cover;
}
}

/* -------------------------------
content設定-
--------------------------------- */
h2{
  font-size: 18px;
  border-left: 5px solid rgb(61, 101, 235);
  padding: 10px 10px 8px 10px;
  margin-bottom: 15px;
  margin-top: 30px;
  border-bottom: 1px dotted #aaa;
}
.content{
  display: grid;
  grid-template-columns: 1 / 2;
  grid-template-rows: 1 / 3;
  gap: 20px;
}
.content > p{
  font-size: 14px;
  letter-spacing: 0.2em;
  padding: 5px;
}

.content a {
  display: block;
  font-size: 13px;
  padding: 15px;
  font-weight: bold; 
  width: 170px;
  margin: 0 auto;
  color: #fff;
  border-radius: 20px;
  /* background-color: #007bff; */
  background-color: rgb(255, 106, 0);
  margin-bottom: 50px;
}
.content a:hover {
  opacity: .5;
}
.content img{
  box-shadow: 3px 3px 5px #333;
}

h3{
  font-size: 22px;
  margin-bottom: 12px;
  color: rgb(255, 106, 0);
}

.des{
  letter-spacing: .1em;
  margin-bottom: 80px;
  font-size: 14px;
}
.des img{
  display: block;
  margin: auto;
  margin-bottom: 20px;
  box-shadow: 3px 3px 5px #333;
}

h4{
  padding: 10px;
  background-color: rgb(252, 235, 250);
  border-radius: 10px;
  margin-bottom: 10px;
}

.ser{
  align-items: center;
  margin-bottom: 50px;
  letter-spacing: .1em;
  font-size: 14px;
}
.ser img{
  margin-bottom: 20px;
  box-shadow: 3px 3px 5px #333;
}

.chizu{
  width: 100%;
  padding: 10px;
  font-size: 14px;
}
.ado h4{
   border: 1px solid #aaa;
   border-radius: 15px;
}
.ado dt{
  padding: 17px 0px 0  12px;
  
}
.ado dd{
  padding: 0 0 0 12px; 
  border-bottom: 1px dotted #aaa;
}
.sns_icon{
  padding: 50px 0 0 0;
  text-align: center;
}
i.fa-square-instagram{
  font-size: 60px;
  color: #ff0000;}



@media  (min-width:768px){
h2{
  border-left: 7px solid rgb(61, 101, 235);
  padding: 10px 10px 8px 10px;
  margin-bottom: 15px;
  margin-top: 30px;
  border-bottom: 1px dotted #aaa;
}
.content{
  display: grid;
  grid-template-columns: 1fr 1fr 25%;
  gap: 40px;
}
.content > p{
  display: grid;
  align-items: center;
  margin: auto;
  font-size: 16px;
}

.content a {
  display: grid;
  place-items: center;
  padding: 20px;
  font-size: 16px;
  font-weight: bold; 
  width: 200px;
  height: 70px;
  margin: auto;
  transition: opacity .3s;
  color: #fff;
  border-radius: 40px;
  /* background-color: #007bff; */
  background-color: rgb(255, 106, 0);
}
.content a:hover {
  opacity: .5;
}
h3{
  font-size: 22px;
  margin-bottom: 12px;
  color: rgb(255, 106, 0);
}
.des{
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 40px;
  font-size: 16px;
  letter-spacing: .1em;
  margin-bottom: 80px;
}
.des p{
  display: grid;
  align-items: center;
}
h4{
  padding: 15px;
}

.ser{
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 40px;
  margin-bottom: 80px;
  letter-spacing: .1em;
  font-size: 16px;
}
.ser p{
  /* align-items: center; */
  padding: 10px;
}

.chizu{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  font-size: 16px;
}

.ado h4{
   border: 1px solid #aaa;
   border-radius: 15px;
}
.ado dt{
  padding: 17px 0px 0  12px;
}
.ado dd{
  padding: 0 0 0 12px; 
  border-bottom: 1px dotted #aaa;
}
.sns_icon{
  padding: 50px 0 0 0;
  text-align: center;
}
i.fa-square-instagram{
  font-size: 60px;
  color: #ff0000;}

}


  /* --------------
------フォーム設定----- */
form{
  padding: 30px 0;
  margin-bottom: 30px;        
}  
.cont p{
  font-size: 12px;
} 

.cont form dl{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;   
}
.cont form dl dt{
  width: 20%;
  margin-bottom: 40px;
  padding: 10px 0;
  font-size: 12px;
}
.cont form dl dt:last-of-type{
  align-self: start;
}
.cont form dl dd{
  width: 80%;
  margin-bottom: 25px;
}
.cont form dd label{
  padding-right: 30px;
  font-size: 20px;
}
.cont form dd input[type="text"],form dd input[type="email"]{
  padding: 12px 14px;
  width: 80%;
  border: 2px solid #000; 
}
.cont form dd textarea{
  padding: 12px 12px;
  width: 80%;
  border: 2px solid #000;
}
.cont form p{
  text-align: center;
}
.cont form p input[type="submit"]{
  padding: 20px 30px 18px 30px;
  font-weight: bold;
  background-color: rgb(250, 202, 245);
  cursor: pointer;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 14px;
}
.cont form p input[type="submit"]:hover{
  background-color: rgb(252, 235, 250,0.5);
  color: #aaa;
}

@media (min-width:768px) {
  form{
    padding: 30px 0;
    margin-bottom: 30px;        
  }   

  .cont p{
    font-size: 16px;
  }
  
  .cont form dl{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;   
  }
  .cont form dl dt{
    width: 20%;
    margin-bottom: 40px;
    padding: 10px 0;
    font-size: 16px;
  }
  .cont form dl dt:last-of-type{
    align-self: start;
  }
  .cont form dl dd{
    width: 80%;
    margin-bottom: 25px;
  }
  .cont form dd label{
    padding-right: 30px;
    font-size: 20px;
  }
  .cont form dd input[type="text"],form dd input[type="email"]{
    padding: 12px 14px;
    width: 80%;
    border: 2px solid #000; 
  }
  .cont form dd textarea{
    padding: 12px 14px;
    width: 80%;
    border: 2px solid #000;
  }
  .cont form p{
    text-align: center;
  }
  .cont form p input[type="submit"]{
    padding: 20px 30px 18px 30px;
    font-weight: bold;
    background-color: rgb(250, 202, 245);
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 10px;
    font-size: 18px;
  }
  .cont form p input[type="submit"]:hover{
    background-color: rgb(252, 235, 250,0.5);
    color: #aaa;
  }
  
}





/* トップへ戻るボタン */
#page_top{
    position: fixed;
    right: 10px;
    bottom: 30px;
    width: 60px;
    height: 50px;
    background-color: rgba(124, 255, 255, 0.9);
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    display: none;
    color:#000;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
}


/* ---footer設定----- */
.footer_inner{
  display: grid;
  place-items: center;
  margin: auto;
  height: 150px;
  color: #fff;
  background-color: #007bff;
  text-align: center;
  margin-top: 50px;
}
.footer_inner{
  font-size: 12px;
}

@media (min-width:768px) {
.footer_inner{
  display: grid;
  place-items: center;
  margin: auto;
  height: 150px;
  color: #fff;
  background-color: #007bff;
  text-align: center;
  margin-top: 50px;
  font-size: 16px;
}
}

        /*-----------------------------------------
    thanks.html #bg and .content - setting   
-----------------------------------------*/
#bg{
  position: fixed;
  top: 0;
  left: 0;
  background-color: #007bff;
  width: 100%;
  height: 100vh;
  display: none;
}
.conv{
  max-width: 350px;
  height: 350px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-color: #fff;
}
.conv h1{
  margin: 50px 0 50px;
  text-align: center;
  font-size: 20px;
}
.conv p{
  font-size: 14px;
  padding: 20px;
}
.conv p a{
  display: block;
  max-width: 300px;
  margin: 0 auto;
  background-color: rgba(124, 255, 255, 0.9);
  color: #aaa;
  text-align: center;
  line-height: 40px;
  border-radius: 20px;
}
.conv p a:hover{
  opacity: .5;
}

@media (min-width:768px){
  .conv{
      max-width: 600px;
      height: 500px;
  }
  .conv h1{
      margin: 150px 0 50px;
      font-size: 26px;
  }
  .conv p a{
      max-width: 400px;
  }
  .conv p{
    font-size: 18px;
      text-align: center;
      padding: 0  40px 40px;
  }
  .conv p a:hover{
    opacity: .5;
  }
}
