body.is-page-company {
  .contents-inner {
    @media screen and (min-width: 768px) {
      max-width: var(--layout-width-inner-xs);
    }
  }

  .nav-wrap .contents-inner {
    @media screen and (min-width: 768px) {
      max-width: var(--layout-width-inner);
    }
  }
}

.company-info-wrapper {
  padding: 40px 0 80px;

  @media screen and (min-width: 768px) {
    padding-bottom: 160px;
  }
}

.page-section--company-intro {
  padding-bottom: 0;
}

.page-menu {
  font-weight: 700;

  ul {
    border: 1px solid var(--color-primary);
    display: flex;

    ul {
      border-top: 1px solid rgb(255 255 255 / 0.5);
      position: absolute;
      left: -1px;
      right: -1px;
      top: 100%;
      opacity: 0;
      z-index: 1;
      transform: translateY(-10px);
      pointer-events: none;
      transition:
        opacity 0.3s ease,
        transform 0.3s ease;

      .page-button {
        z-index: 0;
      }
    }
  }

  li {
    position: relative;
    flex: 1 1 0%;

    &:not(:first-child) {
      border-left: 1px solid var(--color-primary);
    }

    &:has(ul) {
      &:has(.is-active) {
        > .page-button {
          background-color: var(--color-primary);
          color: #fff;
        }
      }

      &:hover {
        > ul {
          opacity: 1;
          transform: translateY(0);
          pointer-events: auto;
        }
      }
    }
  }

  .page-button {
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    display: block;
    padding: 18px;
    transition: 0.1s;
    width: 100%;
    height: 100%;
    place-content: center;
    background-color: #fff;
    position: relative;
    z-index: 10;

    &:hover {
      background-color: rgb(0 3 64 / 0.1);
    }

    &.is-active {
      background-color: var(--color-primary);
      color: #fff;
    }
  }
}

.company-intro {
  display: flex;
  flex-flow: column;
  gap: 40px;

  @media screen and (min-width: 768px) {
    gap: 80px;
    padding: 40px 40px 0;
  }

  .company-intro__img {
    .company-intro__label {
      margin-bottom: 24px;
      font-family: var(--font-en);
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;

      @media screen and (min-width: 768px) {
        margin-bottom: 12px;
        font-size: 20px;
        position: relative;
        top: -24px;
      }
    }

    img {
      display: block;
      width: 100%;
      max-width: 380px;
    }
  }

  .company-intro__content {
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.04em;

    @media screen and (min-width: 768px) {
      font-size: 16px;
    }

    > * {
      margin-bottom: 20px;
      @media screen and (min-width: 768px) {
        margin-bottom: 40px;
      }
    }
  }
}

.mti-info {
  .mti-info__header {
    font-family: var(--font-en);

    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;

    padding-block: 16px;
    border-bottom: 1px solid rgb(0 30 64 / 20%);
    position: relative;
    cursor: pointer;

    &::after {
      content: '';
      position: absolute;
      left: 0;
      top: 100%;
      width: 100%;
      height: 2px;
      background-color: var(--color-primary);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }

    &:hover {
      &::after {
        transform: scaleX(1);
      }
    }

    &.is-open {
      .toggle-button__icon {
        transform: rotate(45deg);
      }

      &::after {
        transform: scaleX(1);
      }
    }

    @media screen and (min-width: 768px) {
      margin-bottom: 80px;
    }

    h2 {
      font-size: 16px;

      @media screen and (min-width: 768px) {
        font-size: 20px;
      }

      @media screen and (min-width: 1024px) {
        font-size: 24px;
      }
    }

    .toggle-button {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: opacity 0.1s;

      &:hover {
        opacity: 0.5;
      }

      .toggle-button__text {
        font-size: 14px;
      }

      .toggle-button__icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
      }
    }
  }

  .mti-info__content {
    > * {
      margin-bottom: 40px;
    }
  }
}

.mti-info-item {
  display: flex;
  gap: 20px;

  @media screen and (min-width: 768px) {
    gap: 40px;
    align-items: center;
  }

  @media screen and (min-width: 1024px) {
    gap: 80px;
  }

  .mti-info-item__header {
    flex: none;

    aspect-ratio: 1 / 1;
    border: 1px solid var(--color-primary);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-en);

    @media screen and (min-width: 768px) {
      width: 180px;
      height: 180px;
      font-size: 24px;
    }
  }

  .mti-info-item__content {
    line-height: 2;
    max-width: 580px;

    h3 {
      line-height: normal;
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 20px;

      @media screen and (min-width: 768px) {
        font-size: 20px;
      }

      @media screen and (min-width: 1024px) {
        font-size: 24px;
      }
    }
  }
}

.mvv {
  background-color: #f2f2f2;
  padding: 40px 20px;
  display: flex;
  flex-flow: column;
  gap: 40px;
  align-items: center;

  @media screen and (min-width: 768px) {
    flex-flow: row;
    padding: 40px;
  }

  @media screen and (min-width: 1024px) {
    padding: 48px 80px;
  }

  .mvv__img {
    flex: none;

    img {
      display: block;
      margin-inline: auto;
    }

    @media screen and (min-width: 768px) {
      padding-right: 40px;
      img {
        max-width: 128px;
      }
    }

    @media screen and (min-width: 1024px) {
      padding-left: 20px;
      padding-right: 60px;
    }
  }

  .mvv__content {
    flex: 1 1 0%;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
    max-width: 640px;

    @media screen and (min-width: 768px) {
      font-size: 15px;
    }
  }
}

.company-overview {
  margin-bottom: 40px;

  @media screen and (min-width: 768px) {
    margin-bottom: 80px;
  }

  + .section-footer {
    text-align: center;
  }
}

.company-overview__header {
  margin-bottom: 24px;
  margin-bottom: 1em;
}

.company-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;

  @media screen and (min-width: 768px) {
    font-size: 16px;
  }

  .en {
    font-weight: 400;
  }

  th,
  td {
    padding: 20px 10px;
    border-top: 1px solid var(--color-primary);
    line-height: 2;
    vertical-align: middle;

    @media screen and (min-width: 768px) {
      padding: 20px;
    }
  }

  th {
    white-space: nowrap;
    @media screen and (min-width: 768px) {
      min-width: 200px;
    }
  }

  td {
    font-feature-settings: 'palt';

    > * {
      &:not(:last-child) {
        margin-bottom: 20px;
      }
    }
  }

  ul {
    display: flex;
    flex-flow: row wrap;
    gap: 0 8px;

    li {
      &:not(:last-child) {
        &::after {
          content: '、';
        }
      }
    }

    a {
      text-decoration: underline;
      &:hover {
        opacity: 0.5;
      }
    }
  }
}

.company-brochure {
  background-color: #f2f2f2;
  padding: 40px;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 40px;

  @media screen and (min-width: 768px) {
    flex-flow: row;
    padding: 80px;
  }

  .company-brochure__img {
    flex: 1 1 0%;
    img {
      display: block;
      margin-inline: auto;
    }
  }

  .company-brochure__content {
    flex: 1 1 0%;

    hgroup {
      margin-bottom: 25px;
    }

    .company-brochure__format {
      font-weight: 700;

      .en {
        font-weight: 500;
      }
    }

    h3 {
      font-size: 20px;
      line-height: normal;
      font-weight: 700;
      margin-bottom: 11px;

      @media screen and (min-width: 768px) {
        font-size: 24px;
      }
    }

    .button {
      width: 100%;
      max-width: 280px;
    }
  }
}
