:root {
  /* css variables */
  --color-profitzCommonFooter-primary-black: #000;
  --color-profitzCommonFooter-primary-white: #fff;
  --color-profitzCommonFooter-monoqlo: #424242;
  --color-profitzCommonFooter-primary-gold: #c8ae52;
  /* end css variables */
}

.profitzCommonFooter {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "palt" on;

  /* utility classes */
  .visible-on-desktop {
    display: none;
    @media screen and (min-width: 768px) {
      display: block;
    }
  }

  .visible-on-mobile {
    display: none;
    @media screen and (max-width: 767px) {
      display: block;
    }
  }
  /* end utility classes */

  /* global styles */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
  }
  img,
  svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  a {
    color: var(--color-profitzCommonFooter-primary-white);
    text-decoration: none;
  }
  a,
  button {
    transition: opacity 0.3s ease-in-out;
    &:hover {
      opacity: 0.75;
    }
  }
  ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
  }

  /* end global styles */
}

.profitzCommonFooter {
  background: var(--color-profitzCommonFooter-primary-black);
  color: var(--color-profitzCommonFooter-primary-white);
  padding-block: 40px 60px;
  padding-inline: 20px;
  @media screen and (min-width: 768px) {
    padding-block: 60px;
    padding-inline: 20px;
  }
}

.profitzCommonFooter__inner {
  margin-inline: auto;
  width: 100%;
  max-width: 1126px;
}

.profitzCommonFooter__logoBlock {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(50 / 1126 * 100%);
  @media screen and (min-width: 768px) {
    display: grid;
    align-content: baseline;
    align-items: end;
    grid-template-columns: 115px 1fr 164px;
  }
}
.profitzCommonFooter__logo {
  width: 150px;
  height: 60px;
  @media screen and (min-width: 768px) {
    width: 115px;
    height: 50px;
  }
  svg {
    width: 100%;
    height: auto;
  }
}

.profitzCommonFooter__navigationBlock {
  margin-block: 40px;
  padding-block: 40px 20px;
  border-top: 1px solid var(--color-profitzCommonFooter-monoqlo);
  border-bottom: 1px solid var(--color-profitzCommonFooter-monoqlo);
  & > div + * {
    margin-top: 20px;
  }
}

.profitzCommonFooter__mainNavigation {
  font-size: 16px;
  flex: 1;
  @media screen and (min-width: 768px) {
    font-size: 14px;
  }
  ul {
    @media screen and (min-width: 768px) {
      display: flex;
      gap: 8px calc(24 / 1126 * 100%);
      flex-wrap: wrap;
    }
  }
  li + li {
    margin-top: 12px;
    @media screen and (min-width: 768px) {
      margin-top: 0;
    }
  }
}
.profitzCommonFooter__subNavigation {
  font-size: 12px;
  @media screen and (min-width: 768px) {
    margin-block: 32px;
  }
  ul {
    @media screen and (min-width: 768px) {
      display: flex;
      gap: 8px 19px;
      flex-wrap: wrap;
      align-items: baseline;
    }
  }
  li + li {
    margin-top: 12px;
    @media screen and (min-width: 768px) {
      margin-top: 0;
    }
  }
}

.profitzCommonFooter__contact {
  width: 100%;
  max-width: 250px;
  @media screen and (min-width: 768px) {
    max-width: 164px;
  }
  a {
    display: flex;
    justify-content: space-between;
    place-items: center;
    padding: 13px 18px;
    background: #162243;
    border-radius: 60px;
    white-space: nowrap;
    font-size: 14px;
    @media screen and (min-width: 768px) {
    }
  }

  svg {
    width: 24px;
    height: 24px;
  }
}

.profitzCommonFooter__sections {
  display: grid;
  gap: calc(28px - 12px);
  margin-block-start: 40px;
  @media screen and (min-width: 768px) {
    grid-template-columns: 2.5fr 1fr;
    gap: 28px;
    border-bottom: 1px solid var(--color-profitzCommonFooter-monoqlo);
  }
  @media screen and (min-width: 1024px) {
    grid-template-columns: 4fr 1fr;
  }
}
.profitzCommonFooter__sections + div {
  margin-block-start: 40px;
  @media screen and (min-width: 768px) {
    margin-block-start: 32px;
  }
}

.profitzCommonFooter__section + .profitzCommonFooter__section {
  border-top: 1px solid var(--color-profitzCommonFooter-monoqlo);
  padding-block-start: 32px;
  @media screen and (min-width: 768px) {
    border-top: none;
    padding-block-start: 0;
  }
}

.profitzCommonFooter__sectionGrid {
  display: grid;
  gap: 28px;
  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profitzCommonFooter__sectionTitle,
.profitzCommonFooter__sectionGridItemTitle {
  font-family: "Barlow Condensed", sans-serif;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-profitzCommonFooter-primary-gold);
}

.profitzCommonFooter__sectionTitle {
  font-size: 24px;
  border-bottom: 1px solid var(--color-profitzCommonFooter-monoqlo);
  padding-block-end: 24px;
}

h3.profitzCommonFooter__sectionGridItemTitle {
  font-size: 16px;
  margin-block: 16px;
}

.profitzCommonFooter__sectionGridItemContent {
  h4 {
    margin-block: 12px;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #d3d3d3;
    position: relative;
    padding-right: 24px;
    a,
    span {
      display: inline-block;
    }
  }

  button {
    outline: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    &:before,
    &:after {
      content: "";
      display: block;
      width: 14px;
      height: 2px;
      border-radius: 2px;
      background: var(--color-profitzCommonFooter-primary-white);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      transition: transform 0.3s ease-in-out;
    }
  }
  button.plus {
    &:before {
      transform: translate(-50%, -50%) rotate(90deg);
    }
  }

  li {
    font-size: 14px;
  }

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

.profitzCommonFooter__sectionGridItemContent + .profitzCommonFooter__sectionGridItemContent {
  margin-top: calc(28px - 12px);
}

.profitzCommonFooter__copyrightBlock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  @media screen and (min-width: 768px) {
    flex-direction: row;
  }
}

.profitzCommonFooter__copyrightBlocklinks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-top: 24px;
  @media screen and (min-width: 768px) {
    flex-direction: row;
    padding-top: 0;
  }
  p {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 125%;
    text-align: center;
  }

  ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    @media screen and (min-width: 768px) {
      flex-direction: row;
    }
  }

  li {
    font-weight: 500;
    font-size: 12px;
    line-height: 125%;
    letter-spacing: 0.1em;
  }

  a {
    text-decoration: underline;
  }
}
.profitzCommonFooter__copyright {
  font-family: "Barlow Condensed", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  text-align: center;
  @media screen and (min-width: 768px) {
    text-align: left;
  }
}

