@charset "utf-8";

.p-company-about {
  margin-top: 80px;
}

.p-company-about__heading {
  color: var(--color-red);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.643;
  letter-spacing: 0.05em;

  @media (width < 768px) {
    font-size: 24px;
  }
}

.p-company-about__text {
  margin-top: 36px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.p-company-about__nav {
  width: fit-content;
  max-width: 980px;
  margin-top: 60px;
  background: #f8e5e4;
  box-shadow: inset 0px 3px 16px #ffffff52;
  border-radius: 5px;
  display: flex;
  overflow: hidden;

  @media (width < 768px) {
    display: flex;
    flex-direction: column;
  }
}

.p-company-about__link {
  display: block;
  width: 218px;
  min-width: fit-content;
  padding: 12px 26px 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--color-red);
  font-weight: 600;
  line-height: 1.643;
  letter-spacing: 0.05em;
  position: relative;
  flex: 1 1 auto;
}

.p-company-about__link:not(:first-of-type)::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #e0a09c;
}

.p-company-about__link::after {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--color-red) url("https://daishin-reform.com/system_panel/uploads/images/arrow-right-white.svg") no-repeat center center / 50%;
  border-radius: 50%;
  transform: rotate(90deg);
  transition: all 0.3s ease;
}

.p-company-about__link:hover {
  color: var(--color-d-red);
}

.p-company-about__link:hover::after {
  background: var(--color-d-red) url("https://daishin-reform.com/system_panel/uploads/images/arrow-right-white.svg") no-repeat center center / 50%;
}

.p-company {
  padding-top: 120px;

  @media (width < 768px) {
    padding-top: 80px;
  }

  .l-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;

    @media (width < 768px) {
      flex-direction: column;
      gap: 40px;
    }
  }
}

.p-company__heading.is-small {
  width: fit-content;
  flex-direction: row;
  align-items: center;
  gap: 32px;

  .c-heading__en {
    line-height: 1;
  }
}

.p-company__body {
  width: 60.5%;

  @media (width < 768px) {
    width: 100%;
  }
}

.p-company-table {
  margin-top: -18px;
}

.p-company-table__row {
  display: flex;
  align-items: center;
  padding: 26px 0;
  gap: 10px;
}

.p-company-table__row:not(:first-of-type) {
  border-top: 1px solid hsla(0, 0%, 60%, 0.3);
}

.p-company-table__head {
  width: 19%;
  min-width: 80px;
  color: var(--color-red);
  font-weight: 700;
}

.p-company-table__text {
  font-weight: 400;
  color: #464646;

  a:hover {
    opacity: 0.7;
  }
}

.p-company-access {
  margin-top: 20px;
}

.p-company-access__map {
  width: 100%;
  aspect-ratio: 703/360;
}

.p-company-access__address {
  margin-top: 16px;
  font-weight: 400;

  color: #464646;
}

.p-company-message {
  margin-top: -10px;
  margin-bottom: 112px;
}

.p-company-message__img {
  width: 100%;
  border-radius: 5px;
  aspect-ratio: 703/300;
  object-fit: cover;
}

.p-company-message__heading {
  margin-top: 34px;
  color: var(--color-red);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.917;
  letter-spacing: 0.05em;

  @media (width < 768px) {
    font-size: 20px;
  }
}

.p-company-message__text {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.03em;
}

.p-company-message__name {
  margin-top: 33px;
  margin-left: auto;
  width: fit-content;
  padding: 8px 4px 8px 20px;
  border-left: 1px solid var(--color-red);

  div {
    line-height: 1.5;
  }

  div:first-of-type {
    color: #818181;
    font-size: 12px;
  }

  div:last-of-type {
    margin-top: 14px;
    color: #00081a;
  }
}
