/* Footer and legal-page shared styles. */
.l-footer .l-footer__inner {
  align-items: flex-start;
}

.l-footer .box_data {
  width: 42rem;
  flex: 0 0 42rem;
}

.l-footer .box_data address {
  margin-bottom: 0;
}

.l-footer .footer_legal {
  margin-top: 3.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2.4rem;
  font-size: 1.2rem;
  line-height: 1.7;
}

.l-footer .footer_legal a,
.l-footer .footer_social a {
  width: fit-content;
  position: relative;
  transition: opacity 0.25s ease;
}

.l-footer .footer_legal a::after,
.l-footer .footer_social a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.l-footer .footer_legal a:hover::after,
.l-footer .footer_legal a:focus-visible::after,
.l-footer .footer_social a:hover::after,
.l-footer .footer_social a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.l-footer .footer_social {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.8rem;
  font-family: "Bacasime Antique", serif;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.l-footer .footer_social a {
  padding-right: 1.2rem;
}

.l-footer .footer_social a::before {
  content: "↗";
  position: absolute;
  top: -0.05em;
  right: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.65em;
}

.l-footer .box_data .footer_copyright {
  margin-top: 5.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: block;
}

.l-footer .footer_menu {
  margin-right: 0;
  margin-left: clamp(8rem, 12vw, 20rem);
}

/* Legal pages */
.page_legal {
  background: #f7f6f2;
  color: #465352;
}

.legal_hero {
  min-height: 42rem;
  padding: 17rem 0 7.2rem;
  display: flex;
  align-items: flex-end;
  background: #3b8781;
  color: #fdfcfb;
}

.legal_hero__inner,
.legal_layout {
  width: 86.15%;
  max-width: 124rem;
  margin: 0 auto;
}

.legal_eyebrow {
  margin-bottom: 1.6rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.legal_hero h1 {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(3.2rem, 4.2vw, 5.6rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.legal_layout {
  padding: 10rem 0 14rem;
  display: grid;
  grid-template-columns: 24rem minmax(0, 76rem);
  justify-content: space-between;
  gap: 8rem;
  align-items: start;
}

.legal_nav {
  position: sticky;
  top: 13rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(70, 83, 82, 0.35);
}

.legal_nav__title {
  margin-bottom: 2.4rem;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
}

.legal_nav ul {
  display: grid;
  gap: 1.6rem;
}

.legal_nav a {
  position: relative;
  display: inline-block;
  padding-left: 1.6rem;
  font-family: "Zen Old Mincho", serif;
  font-size: 1.3rem;
  line-height: 1.6;
  transition: opacity 0.25s ease;
}

.legal_nav a::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0);
  transition: 0.25s ease;
}

.legal_nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
}

.legal_nav a:hover,
.legal_nav a:focus-visible {
  opacity: 0.62;
}

.legal_document {
  font-size: 1.5rem;
  line-height: 2;
  letter-spacing: 0.02em;
}

.legal_document > :first-child {
  margin-top: 0;
}

.legal_document .legal_lead {
  margin-bottom: 6.4rem;
  font-family: "Zen Old Mincho", serif;
  font-size: 1.8rem;
  line-height: 2;
}

.legal_document h2 {
  margin: 6.4rem 0 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(70, 83, 82, 0.25);
  font-family: "Zen Old Mincho", serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.legal_document h3 {
  margin: 4rem 0 1.4rem;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.7;
}

.legal_document p + p {
  margin-top: 1.4rem;
}

.legal_document ol,
.legal_document ul {
  margin: 1.8rem 0 0;
  padding-left: 1.6em;
}

.legal_document ol {
  list-style: decimal;
}

.legal_document ul {
  list-style: disc;
}

.legal_document li + li {
  margin-top: 0.8rem;
}

.legal_document li > ul,
.legal_document li > ol {
  margin-top: 0.8rem;
}

.legal_document a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal_document a:hover,
.legal_document a:focus-visible {
  text-decoration-thickness: 2px;
}

.legal_details {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  border-top: 1px solid rgba(70, 83, 82, 0.25);
}

.legal_details dt,
.legal_details dd {
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(70, 83, 82, 0.25);
}

.legal_details dt {
  padding-right: 2.4rem;
  font-weight: 600;
}

.legal_table_wrap {
  margin-top: 2.4rem;
  overflow-x: auto;
}

.legal_document table {
  width: 100%;
  min-width: 64rem;
  border-collapse: collapse;
  font-size: 1.3rem;
  line-height: 1.7;
}

.legal_document th,
.legal_document td {
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(70, 83, 82, 0.3);
  text-align: left;
  vertical-align: top;
}

.legal_document th {
  background: rgba(59, 135, 129, 0.1);
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .l-footer {
    padding: 5.6rem 0 calc(4rem + (64 / 390 * 100vw));
  }

  .l-footer .l-footer__inner {
    width: calc(100% - 4.8rem);
  }

  .l-footer .box_data {
    display: contents;
  }

  .l-footer .footer_brand {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .l-footer .footer_brand .footer_logo {
    position: static;
    order: 1;
    margin: 0;
    width: min(27rem, 100%);
    height: auto;
  }

  .l-footer .footer_brand .footer_logo a,
  .l-footer .footer_brand .footer_logo img {
    display: block;
  }

  .l-footer .footer_brand .footer_logo img {
    width: 100%;
    height: auto;
  }

  .l-footer .footer_brand address {
    position: static;
    order: 2;
    margin: 2.4rem 0 0;
    display: block;
    font-size: 1.3rem;
    line-height: 1.8;
  }

  .l-footer .footer_menu {
    order: 2;
    width: 100%;
    margin: 4.8rem 0 0;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .l-footer .footer_menu li.adjust01 {
    margin-bottom: 0;
  }

  .l-footer .footer_menu li a,
  .l-footer .footer_menu li a.name {
    margin-top: 0;
  }

  .l-footer .footer_menu .name {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .l-footer .footer_menu a.size_m {
    position: relative;
    margin-top: 0.8rem;
    margin-left: 2rem;
    padding-left: 1.4rem;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.78;
  }

  .l-footer .footer_menu a.size_m::before {
    content: "";
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 0.8rem;
    height: 1px;
    background: currentColor;
  }

  .l-footer .footer_meta {
    order: 3;
    width: 100%;
    margin-top: 4rem;
  }

  .l-footer .footer_legal {
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .l-footer .footer_social {
    margin-top: 4rem;
    padding-top: 3.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.8rem;
    font-size: 1.5rem;
  }

  .l-footer .footer_social a {
    width: fit-content;
    padding-right: 1rem;
    text-align: left;
  }

  .l-footer .box_data .footer_copyright {
    margin-top: 3.2rem;
    padding-top: 2.4rem;
    font-size: 1.1rem;
  }

  .legal_hero {
    min-height: 34rem;
    padding: 14rem 0 5.6rem;
  }

  .legal_hero__inner,
  .legal_layout {
    width: 86.15%;
  }

  .legal_eyebrow {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
  }

  .legal_hero h1 {
    font-size: 3rem;
  }

  .legal_layout {
    padding: 6.4rem 0 9.6rem;
    display: block;
  }

  .legal_nav {
    position: static;
    margin-bottom: 6.4rem;
    padding-top: 1.6rem;
  }

  .legal_nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 2rem;
  }

  .legal_nav a {
    font-size: 1.2rem;
  }

  .legal_document {
    font-size: 1.4rem;
    line-height: 1.95;
  }

  .legal_document .legal_lead {
    margin-bottom: 5.6rem;
    font-size: 1.6rem;
  }

  .legal_document h2 {
    margin-top: 5.6rem;
    font-size: 1.9rem;
  }

  .legal_document h3 {
    margin-top: 3.6rem;
    font-size: 1.6rem;
  }

  .legal_details {
    grid-template-columns: 1fr;
  }

  .legal_details dt {
    padding-bottom: 0.4rem;
    border-bottom: 0;
  }

  .legal_details dd {
    padding-top: 0;
  }
}
