.l-structure.is-legal {
  background: #f7f8f8;
}

.p-legal-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  background: #fff;
  border-bottom: 3px solid #f09600;
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

.p-legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1200px;
  height: 96px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-legal-header__brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.p-legal-header__brand img {
  width: 202px;
  height: auto;
}

.p-legal-header__nav ul,
.p-legal-footer__links,
.p-legal-footer__legal {
  display: flex;
  flex-wrap: wrap;
}

.p-legal-header__nav ul {
  justify-content: flex-end;
  gap: 10px 18px;
}

.p-legal-header__nav a {
  color: #1f1f1f;
  text-decoration: none;
}

.p-legal-footer a {
  color: #fff;
  text-decoration: none;
}

.p-legal-header__nav a {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-legal-header__nav a:hover,
.p-legal-footer a:hover {
  text-decoration: underline;
}

.p-legal-footer {
  margin-top: 80px;
  background: #f09600;
  color: #1f1f1f;
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

.p-legal-footer__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 46px 40px 34px;
  border-bottom: 1px solid #f6c066;
}

.p-legal-footer__brand a {
  display: inline-block;
  text-decoration: none;
}

.p-legal-footer__brand img {
  width: 120px;
  height: auto;
}

.p-legal-footer__brand span {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.p-legal-footer__nav {
  display: grid;
  gap: 22px;
}

.p-legal-footer__title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.p-legal-footer__links,
.p-legal-footer__legal {
  gap: 10px 28px;
}

.p-legal-footer__links a,
.p-legal-footer__legal a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 1.3rem;
  font-weight: 700;
}

.p-legal-footer__links a::before,
.p-legal-footer__legal a::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #fff;
}

.p-legal-footer__copyright {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 40px 24px;
  font-size: 1.2rem;
  text-align: right;
}

@media screen and (min-width: 768px) {
  .l-structure.is-legal {
    min-width: 1280px;
    padding-top: 126px;
  }
}

@media screen and (max-width: 767px) {
  .l-structure.is-legal {
    padding-top: 74px;
  }

  .p-legal-header__inner {
    display: block;
    height: 74px;
    padding: 10px 15px;
  }

  .p-legal-header__brand a {
    display: inline-flex;
  }

  .p-legal-header__brand img {
    width: 150px;
    height: auto;
  }

  .p-legal-header__nav {
    overflow-x: auto;
    margin-top: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .p-legal-header__nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    width: max-content;
  }

  .p-legal-header__nav a {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .p-legal-footer {
    margin-top: 50px;
  }

  .p-legal-footer__inner {
    display: block;
    padding: 34px 15px 28px;
  }

  .p-legal-footer__brand {
    margin-bottom: 28px;
  }

  .p-legal-footer__brand a {
    display: inline-block;
  }

  .p-legal-footer__brand img {
    width: 104px;
    height: auto;
  }

  .p-legal-footer__links,
  .p-legal-footer__legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }

  .p-legal-footer__links a,
  .p-legal-footer__legal a {
    font-size: 1.2rem;
  }

  .p-legal-footer__copyright {
    padding: 16px 15px 22px;
    text-align: center;
  }
}
