@charset "utf8";

/*-- footer --*/

footer {
  margin: 0;
  padding: 60px 0;
  width: 100%;
  background: #f7f7f7;
  /* border-top: 1px solid #dcdcdc; */
}

.footer-inner {
  margin: 0 auto;
  max-width: 980px;
}

.phone-box {
  margin-bottom: 34px;
}

.phone-box__header > img {
  margin: 0 auto 24px;
  display: block;
  max-width: 94px;
}

.phone-box__body {
  display: flex;
  line-height: 1.6;
}

.phone-box__body > div {
  position: relative;
  margin: 0 auto;
  width: 25%;
  text-align: center;
}

.phone-box__body > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 1px;
  background: #999;
}

.phone-box__body > div:first-child::before {display: none;}

.phone-box__body > div span,
.phone-box__body > div a {
  color: #000;
  font-size: 24px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.phone-box__body > div span {
  font-size: 15px;
}

.phone-ttl {font-weight: 600;}

address {
  margin-bottom: 20px;
  width: 100%;
  -js-display: flex;
  display: flex;
  font-style: normal;
  flex-flow: column wrap;
  justify-content: center;
}

.address {
  margin-bottom: 24px;
  padding: 0;
  width: auto;
  text-align: center;
}

.address:nth-child(even) {
  width: auto;
}

.address > h2 {
  margin-bottom: 10px;
  font-size: 18px;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-block;
}

.address > h2 > span {
  font-size: 13px;
}

.address > p,
.address > p a {
  color: #000;
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.address > p a {
  text-decoration: none;
  transition: color 0.3s;
}

.address a:hover {
  color: #777;
}

.sdgs {
  margin: 0 auto 30px;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdgs__mark {
  margin: 0;
  max-width:  84px;
}

.sdgs__text {
  margin-left: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.sdgs__text br {display:none}

.copyright {
  clear: both;
  font-size: 14px;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.05em;
}

#toTop {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 1005;
}

#toTop a {
  width: 54px;
  color: #000;
  padding: 13px 0 13px;
  font-size: 12px;
  font-size: 1.2rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  display: block;
  border-radius: 4px;
  box-shadow: 0px 0px 2px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.85);
  transition: all 0.7s;
}

#toTop a:hover {
  box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
  background: rgba(255,255,255,1.0);
}


@media screen and (max-width: 768px) {
    
  .phone-box__body {flex-wrap: wrap;}
  .phone-box__body > div {
    margin-bottom: 8px;
    width: 100%;
  }
  .phone-box__body > div::before {display: none;}
  .phone-box__body > div br {display: none;}
  .phone-ttl {margin-right: 1rem;}

}


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

  footer {
    padding: 60px 0 16px;
    width: 100%;
  }

  .footer-inner {
    margin: 0 auto;
    width: 96%;
    max-width: 600px;
  }

  .phone-box__body > div br {display: inline;}
  .phone-ttl {margin-right: 0;}

  address {
    margin-bottom: 20px;
  }
  
  .sdgs {margin-bottom: 32px;width: 100%}
  
  .sdgs__mark {
    margin: 0;
    max-width:  74px;
  }

  .sdgs__text br {display:inline}
  
  #toTop {bottom: 36px;}
  
  #toTop a {
    width: 48px;
    padding: 9px 0 9px;
  }  

}