/* Company page */

.company-page {
place-content: center flex-start;
align-items: center;
background: var(--color-bg-white);
flex-flow: column;
height: 100%;
margin: 0px;
padding: 0px;
width: 100%;
}

.company-page__main {
margin: 80px 0px 0px;
transform: translate(0px, 0px);
transition-delay: 800ms;
transition-duration: 1000ms;
width: 100%;
}

/* Greeting section */

.company-greeting {
place-content: center;
padding: 72px 0px;
max-width: 1080px;
width: 100%;
}

.company-greeting > .section-heading {
align-items: center;
}

.company-greeting > .section-heading .section-heading__en,
.company-greeting > .section-heading .section-heading__ja {
text-align: center;
justify-content: center;
}

.company-greeting__figure {
place-content: center;
align-items: center;
background: var(--color-bg-white);
flex-flow: row;
padding: 80px 40px;
width: 100%;
}

.company-greeting__photo-wrap {
flex-flow: row;
place-content: center;
margin: 0px;
padding: 0px;
}

.company-greeting__photo {
border-radius: 190px;
width: 400px;
}

.company-greeting__photo::before {
background-position: right center;
background-repeat: no-repeat;
background-size: 380px;
}

.company-greeting__photo-wrap::after {
content: '';
background: var(--color-accent);
border-radius: var(--radius-full);
height: 210px;
margin: 80px 0px 0px -200px;
position: relative;
width: 210px;
z-index: -1;
max-width: calc(100% + 200px);
}

.company-greeting__caption {
place-content: center;
margin: 0px 0px 0px 80px;
padding: 0px;
width: 420px;
max-width: calc(100% - 80px);
}

.company-greeting__message {
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--fs-base);
font-weight: 400;
letter-spacing: 0.1em;
line-height: 1.75;
text-align: left;
max-width: 480px;
width: 100%;
}

.company-greeting__name {
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--fs-base);
font-weight: 700;
line-height: 1.4;
margin: 24px 0px 0px;
text-align: right;
max-width: 480px;
width: 100%;
justify-content: flex-end;
}

/* Company info section */

.company-info {
place-content: center flex-start;
align-items: center;
background: rgb(248, 248, 248);
flex-flow: column;
padding: 72px 20px;
width: 100%;
max-width: 100%;
}

.company-info > .section-heading,
.company-info > .section-heading ~ * {
max-width: 1080px;
width: 100%;
}

.company-info > .section-heading {
align-items: center;
margin: 0px 0px 40px;
}

.company-info > .section-heading .section-heading__en,
.company-info > .section-heading .section-heading__ja {
text-align: center;
}

.company-info > .section-heading .section-heading__line {
margin: 10px auto;
}

/* Info table (shared row styles) */

.company-info__table {
place-content: center flex-start;
align-items: center;
background: var(--color-bg-white);
border-radius: 16px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
flex-flow: column;
margin: 0px 0px 72px;
padding: 64px 40px;
max-width: 880px;
width: 100%;
}

.company-info__row {
place-content: center flex-start;
align-items: center;
border-width: 0px 0px 1px;
border-style: dotted;
border-color: var(--color-gray);
flex-flow: row;
padding: 32px 16px;
width: 100%;
}

.company-info__row--first {
border-width: 1px 0px;
}

.company-info__row--location {
place-content: flex-start;
align-items: flex-start;
}

.company-info__label {
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--fs-base);
font-weight: 600;
line-height: 1.4;
margin: 0px;
padding: 0px;
text-align: left;
width: 25%;
max-width: 25%;
}

.company-info__label-wrap {
place-content: flex-start;
align-items: flex-start;
background: var(--color-bg-white);
flex-flow: column;
height: 100%;
width: 25%;
max-width: 25%;
}

.company-info__label--full {
width: 100%;
max-width: 100%;
}

.company-info__value {
place-content: center;
width: 75%;
max-width: 75%;
}

.company-info__text {
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--fs-base);
font-weight: 400;
line-height: 1.75;
text-align: left;
width: 100%;
}

.company-info__text--bold {
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--fs-base);
font-weight: 600;
line-height: 1.75;
text-align: left;
width: 100%;
}

.company-info__text--address {
color: var(--color-text);
font-family: var(--font-sans);
font-size: var(--fs-base);
font-weight: 400;
line-height: 1.75;
margin: 0px 0px 16px;
text-align: left;
width: 100%;
}

/* History */

.company-history {
place-content: center flex-start;
align-items: center;
background: var(--color-bg-white);
border-radius: 16px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
flex-flow: column;
margin: 0px;
padding: 48px;
max-width: 880px;
width: 100%;
}

.company-history-bg {
border-radius: 240px;
height: 380px;
margin: -90px -840px 0px 0px;
position: relative;
width: 540px;
max-width: calc(100% + 840px);
}

/* Access section */

.company-access {
place-content: center flex-start;
align-items: center;
background: var(--color-bg-white);
flex-flow: column;
padding: 72px 20px;
width: 100%;
max-width: 100%;
}

.company-access > .section-heading,
.company-access > .section-heading ~ * {
max-width: 1080px;
width: 100%;
}

.company-access > .section-heading {
align-items: center;
margin: 0px 0px 24px;
}

.company-access > .section-heading .section-heading__en,
.company-access > .section-heading .section-heading__ja {
text-align: center;
}

.company-access > .section-heading .section-heading__line {
margin: 10px auto;
}

.image[data-img="company-history-bg"]::before {
background-image: url(/images/company-history-bg.webp);
}

@media screen and (max-width: 1140px) {
.company-history-bg {
  display: none;
  }
}

@media screen and (max-width: 540px) {
.company-page__main {
  margin: 120px 0px 0px;
  overflow: hidden;
  }

.company-greeting {
  padding: 24px 20px;
  }

.company-greeting__figure {
  place-content: center flex-start;
  flex-flow: column;
  padding: 24px 20px;
  }

.company-greeting__photo-wrap {
  inset: 0px;
  flex: 1 1 0%;
  position: relative;
  }

.company-greeting__photo-wrap::after {
  inset: auto 0px 32px auto;
  margin: 150px 0px 0px -200px;
  }

.company-greeting__caption {
  margin: 0px;
  max-width: 100%;
  width: 100%;
  }

.company-info {
  padding: 40px 20px;
  }

.company-info__row {
  place-content: flex-start;
  align-items: flex-start;
  flex-flow: column;
  padding: 16px 0px;
  }

.company-info__label {
  margin: 0px 0px 24px;
  width: 100%;
  max-width: 100%;
  }

.company-info__label-wrap {
  margin: 0px 0px 24px;
  width: 100%;
  max-width: 100%;
  }

.company-info__value {
  width: 100%;
  max-width: 100%;
  }

.company-history {
  padding: 48px 16px;
  }

.company-access {
  padding: 40px 20px;
  }
}
