@charset "UTF-8";
/* CSS Document */

.inner{
  width: 1200px;
  margin: 0 auto;
}

.intro{
  font-size: 20px;
  line-height: 2;
  text-align: center;
  padding: 60px 0;
  margin-bottom: 80px;
  background: #FFF;
}

.greeting{
  padding-left: 180px;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .greeting{
    padding-bottom: 90px;
  }

  .greeting .wrapper{
    display: flex;
  }

  .greeting h2{
    font-size: 45px;
    letter-spacing: .2em;
    line-height: 1;
    writing-mode: vertical-rl;
    white-space: nowrap;
    background: url("/common/title.webp") right top no-repeat;
    background-size: 15px auto !important;
    padding: 5px 40px 110px 0;
    position: absolute;
    left: 0;
  }

  .greeting .txt{
    margin-bottom: 35px;
  }

  .pic img{
    max-width: none;
    padding-left: 35px;
  }
}

.greeting h3{
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 35px;
}

.greeting .pic{
  position: relative;
  top: 0;
  right: 0px;
}

.greeting .pic p{
  font-size: 16px;
  line-height: 1.5;
  text-align: right;
  margin-top: 8px;
}

.greeting .txt + .txt{
  margin-top: 35px;
  width: 100%;
}

.greeting .txt p{
  font-size: 20px;
  line-height: 2;
}

.greeting .txt p + p{
  margin-top: 35px;
}

.greeting .txt p span{
  display: block;
}

.relation{
  padding: 80px 0;
  background: #edeceb;
}

.relation h2{
  font-size: 35px;
  line-height: 1;
  text-align: center;
  margin-bottom: 40px;
}

.relation li{
  width: 100%;
  min-height: 100px;
  display: table;
  background: #FFF;
}

.relation li + li{
  margin-top: 8px;
}

.relation img {
  padding: 10px 50px 5px;
  height: 100px;
}

.relation h3{
  width: 500px;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  vertical-align: middle;
  display: table-cell;
}

.relation p{
  font-size: 18px;
  line-height: 1.5;
  vertical-align: middle;
  padding: 15px 20px;
  display: table-cell;
  width: 250px;
  text-align: left;
}

.relation a{
  width: 250px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  padding-right: 40px;
  vertical-align: middle;
  background: #d8d7dc;
  position: relative;
  display: table-cell;
  box-sizing: border-box;
}

.relation a::after{
  content: "";
  width: 20px;
  height: 20px;
  background: url("/common/icon_aw.webp") no-repeat;
  background-size: 100% auto;
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  transition: .3s;
}

@media screen and (min-width: 768px) {
  .relation a:hover::after{
    right: 25px;
    transition: .3s;
  }
}

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

  .inner{
    width: 100%;
    padding: 0 5vw;
  }

  .intro{
    font-size: 4vw;
    line-height: 1.6;
    text-align: justify;
    padding: 6vw;
    margin-bottom: 20vw;
  }

  .greeting{
    margin-bottom: 15vw; 
    padding-left: 0;
    position: relative;
  }

  .greeting h2{
    font-size: 7vw;
    letter-spacing: .1em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    background: url("/common/title_s.webp") center bottom no-repeat;
    background-size: auto 2.8vw !important;
    padding-bottom: 7vw;
    margin-bottom: 15vw;
  }

  .greeting h3{
    font-size: 5vw;
    padding: 4vw;
    margin-bottom: 0;
  }

  .greeting .pic{
    width: 70%;
    margin: 11vw auto;
    position: static;
    top: auto;
    right: auto;
  }

  .greeting .pic p{
    font-size: 3vw;
    line-height: 1.5;
    text-align: center;
    margin-top: 1vw;
  }

  .greeting .txt{
    width: 100%;
    padding: 4vw;
  }
  
  .greeting .txt + .txt{
    margin-top: 5vw;
  }
  
  .greeting .txt p{
    font-size: 3.8vw;
    line-height: 1.8;
  }

  .greeting .txt p + p{
    margin-top: 5vw;
  }

  .relation{
    padding: 15vw 0;
  }

  .relation h2{
    font-size: 6vw;
    margin-bottom: 15vw;
  }

  .relation li{
    width: 100%;
    min-height: none;
    display: block;
    padding: 5vw 7vw;
  }

  .relation li + li{
    margin-top: 5vw;
  }

  .relation img {
    padding: 0 0 1rem;
    height: 5vh;
  }
  

  .relation h3{
    width: 100%;
    font-size: 3.8vw;
    line-height: 1.3;
    padding: 0;
    display: block;
  }

  .relation p{
    font-size: 3.5vw;
    line-height: 1.5;
    padding: 0;
    margin: 3vw 0;
    display: block;
  }
  
  .relation p.none{
    display: none;
  }

  .relation a{
    width: 62%;
    height: 12vw;
    font-size: 3.5vw;
    line-height: 12vw;
    text-align: left;
    padding: 0 5vw;
    background: #d8d7dc;
    display: block;
  }
  
  .relation p.none + a{
    margin-top: 3vw;
  }
  
  .relation a::after{
    width: 4vw;
    height: 4vw;
    right: 4vw;
  }
}