.contact-foot-box {
  background-color: #fff;
  border-top: 1px solid #000;
}
.contact-foot {
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 60px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-foot h6 {
  font-family: Arial, Helvetica, "sans-serif";
  font-weight: bold;
  font-size: 320%;
}
.contact-foot p {
  font-size: 100%;
}

.tefax {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.tefax li {
  padding-left: 30px;
}
.tefax h5 {
  font-family: Arial, Helvetica, "sans-serif";
  font-weight: bold;
  font-size: 200%;
  line-height: 1.3;
}
.tefax h5 span {
  font-size: 60%;
  display: block;
}
.tefax h5 a {
  color: #000;
}

footer {
  background-image: url("../img/foot-bg.jpg");
  background-size: cover;
  background-position: center;
}

.foot-b {
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 100px 5%;
  color: #fff;

  display: flex; /* ←追加 */
  justify-content: space-between; /* ←左右に分ける */
  gap: 40px;
}
.foot-b h1 img {
  max-width: 300px;
  margin-bottom: 40px;
}
.foot-b p {
  font-weight: bold;
}
.foot-b h6 {
  font-weight: bold;
  font-size: 120%;
  font-family: Arial, Helvetica, "sans-serif";
  line-height: 1.5;
}
.foot-b h6 a {
  color: #fff;
}

.foot-b__left {
  flex: 1;
  min-width: 0;
}

.foot-b__right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-right-image {
  max-width: 350px;
  width: 100%;
  height: auto;
  filter: drop-shadow(3px 3px 2px #aaa);
}

/* address {
  font-family: Arial, Helvetica, "sans-serif";
  font-size: 80%;
  margin-top: 40px;
} */

.related-company {
  margin-top: 40px;
  padding: 0px 10px;
}

.related-company p {
  font-size: 90%;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.related-company img {
  max-width: 200px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

footer address {
  text-align: center;
  font-family: Arial, Helvetica, "sans-serif";
  font-size: 90%;
  color: #fff;
  margin-top: 20px;
  padding-bottom: 30px;
}

@media screen and (max-width: 800px) {
  .contact-foot {
    padding: 60px 5%;
    display: inherit;
  }
  .tefax {
    display: inherit;
    margin-top: 20px;
  }
  .tefax li {
    padding-left: 0px;
    margin-top: 10px;
  }
  .tefax h5 {
    font-size: 280%;
  }

  .related-company img {
    max-width: 160px;
  }

  .foot-b {
    flex-direction: column;
    align-items: center;
  }
  .foot-b__right {
    margin-top: 40px;
    justify-content: center;
  }
}
