.site-main {
  padding-top: 90px;
  margin-bottom: 200px;
}

@media (max-width: 767px) {
  .site-main {
    padding-top: 17vw;
    margin-bottom: 25vw;
  }
}

.page-title {
  background-image: url(../images/company/company-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
}

.page-title .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 28px;
}

.page-title-text {
  color: #fff;
}

.page-title-text span:first-of-type {
  font-size: 55px;
  line-height: 1;
  font-weight: 300;
  font-family: "Jost", sans-serif;
}

.page-title-text span:last-of-type {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

@media (max-width: 767px) {
  .page-title {
    background-image: url(../images/company/company-bg-sp.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 53.3vw;
  }

  .page-title .container {
    padding-bottom: 3vw;
  }

  .page-title-text span:first-of-type {
    font-size: 8.1vw;
    line-height: 1.2;
  }

  .page-title-text span:last-of-type {
    font-size: 4vw;
  }
}

.company-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.company-nav-item {
  font-size: 16px;
  color: #0078ff;
  font-weight: 900;
  padding-right: 1.2em;
  padding-bottom: 0.05em;
  border-bottom: 1px solid #0078ff;
  position: relative;
}

.company-nav-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border: 2px solid #0078ff;
  border-top: none;
  border-left: none;
  transform: translateY(-50%) rotate(45deg);
}

/*  */

.title-en {
  font-size: 16px;
  color: #0078ff;
  font-weight: 900;
}

.title-ja {
  font-size: 44px;
  width: fit-content;
  padding-bottom: 0.2em;
  border-bottom: 2px solid #005094;
  min-width: 210px;
}

@media (max-width: 767px) {
  .title-en {
    font-size: 3.8vw;
  }
  .title-ja {
    font-size: 5.9vw;
    border-bottom: 0.5vw solid #005094;
    min-width: 30vw;
  }
}

/*  */

#message {
  padding-top: 115px;
}

.company-message-content {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5%;
}

.company-message-text {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 2em;
  font-weight: 500;
}

.company-message-position {
  font-size: 14px;
  font-weight: 700;
  margin-top: 40px;
}

.company-message-name {
  font-size: 27px;
  margin-top: 5px;
}

.company-message-image {
  width: 35%;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .post-content > .container:first-of-type {
    margin-left: 4vw;
    margin-right: 4vw;
  }
}

@media (max-width: 767px) {
  #message {
    padding-top: 8vw;
  }

  .company-message-content {
    flex-direction: column-reverse;
  }

  .company-message-image {
    width: 68%;
    margin: 0 auto;
    margin-bottom: 6vw;
  }

  .company-message-content {
    margin-top: 5vw;
  }

  .company-message-text {
    font-size: 3.6vw;
    line-height: 1.6;
  }

  .company-message-position {
    font-size: 3.3vw;
    margin-top: -3vw;
    text-align: right;
  }

  .company-message-name {
    font-size: 4.8vw;
    margin-top: 1vw;
    text-align: right;
  }
}

/*  */

#philosophy {
  background-color: #e6f5ff;
  padding: 90px 0;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  margin-top: 100px;
  margin-right: 8vw;
}

#philosophy .container {
  margin-left: calc(220px + ((100vw - 1440px) / 2));
  margin-right: auto;
  padding-right: 20px;
}

.company-philosophy-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4%;
  margin-bottom: 40px;
}

.company-philosophy-content:last-of-type {
  margin-bottom: 0;
}

.company-philosophy-content:first-of-type {
  margin-top: 60px;
}

.company-philosophy-image {
  width: 122px;
  padding-top: 5px;
}

.company-philosophy-text {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 1280px) and (min-width: 768px) {
  #philosophy .container {
    margin-left: max(calc(220px + ((100vw - 1440px) / 2)), 4vw);
    max-width: 80vw;
  }
}

@media (max-width: 767px) {
  #philosophy {
    padding: 8vw 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 11vw;
    margin-right: 0;
  }

  #philosophy .container {
    margin-left: 9vw;
    margin-right: 9vw;
    padding-right: 0;
  }

  .company-philosophy-content {
    gap: 4%;
    margin-bottom: 6vw;
    align-items: flex-start;
  }

  .company-philosophy-content:last-of-type {
    margin-bottom: 0;
  }

  .company-philosophy-content:first-of-type {
    margin-top: 4vw;
  }

  .company-philosophy-image {
    width: 14vw;
    padding-top: 1vw;
  }

  .company-philosophy-text {
    font-size: 3.6vw;
    letter-spacing: 0.04em;
    line-height: 1.65;
  }
}

/*  */

#outline {
  padding-top: 100px;
}

.company-outline-item {
  padding: 18px 0;
  display: flex;
  border-bottom: 1px solid #c4c4c4;
  position: relative;
}

.company-outline-item::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 140px;
  height: 1px;
  background-color: #005094;
}

.company-outline-item:first-of-type {
  margin-top: 70px;
  border-top: 1px solid #c4c4c4;
}

.company-outline-item:first-of-type:after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 1px;
  background-color: #005094;
}

.company-outline-item-title {
  font-size: 16px;
  font-weight: 700;
  width: 140px;
  padding-left: 2em;
}

.company-outline-item-text {
  font-size: 16px;
  line-height: 1.6;
  padding-left: 2em;
  font-weight: 500;
}

.company-outline-item-list li {
  padding-left: 1em;
  position: relative;
  line-height: 1.6;
}

.company-outline-item-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.6em;
  height: 0.6em;
  background-color: #005094;
  border-radius: 50%;
}

@media (max-width: 1024px) and (min-width: 768px) {
  #philosophy + .container {
    margin-left: 4vw;
    margin-right: 4vw;
  }
}

@media (max-width: 767px) {
  #outline {
    padding-top: 7vw;
  }

  .company-outline-item {
    padding: 3.3vw 0;
  }

  .company-outline-item::before {
    width: 18vw;
  }

  .company-outline-item:first-of-type {
    margin-top: 9vw;
  }

  .company-outline-item:first-of-type:after {
    width: 18vw;
  }

  .company-outline-item-title {
    font-size: 3.2vw;
    min-width: 18vw;
    width: 18vw;
    padding-left: 1vw;
  }

  .company-outline-item-text {
    font-size: 3.1vw;
    line-height: 1.3;
    padding-left: 2vw;
  }

  .company-outline-item-list li {
    padding-left: 1em;
    line-height: 1.6;
  }

  .company-outline-item-list li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 0.6em;
    height: 0.6em;
    background-color: #005094;
    border-radius: 50%;
  }
}

/*  */

#organization {
  background-color: #e6f5ff;
  padding: 90px 0;
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  margin-top: 100px;
  margin-left: 8vw;
}

#organization .container {
  margin-right: calc(220px + ((100vw - 1440px) / 2));
  margin-left: auto;
}

.company-organization-image {
  margin-top: 40px;
}

@media (max-width: 1280px) and (min-width: 768px) {
  #organization .container {
    margin-right: max(calc(220px + ((100vw - 1440px) / 2)), 4vw);
    max-width: 80vw;
  }
}

@media (max-width: 767px) {
  #organization {
    padding: 8vw 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-top: 11vw;
    margin-left: 0;
  }

  #organization .container {
    margin-right: 9vw;
    margin-left: 9vw;
  }

  .company-organization-image {
    margin-top: 5vw;
  }
}

/*  */

#history {
  padding-top: 100px;
}

.company-history-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #c4c4c4;
  position: relative;
}

.company-history-item::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 140px;
  height: 1px;
  background-color: #005094;
}

.company-history-item:first-of-type {
  border-top: 1px solid #c4c4c4;
  margin-top: 65px;
}

.company-history-item:first-of-type::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 1px;
  background-color: #005094;
}

.company-history-item-year {
  font-size: 43px;
  font-weight: 700;
  color: #005094;
  font-family: "Jost", sans-serif;
  min-width: 140px;
}

.company-history-item-content {
  font-size: 16px;
  line-height: 1.6;
  padding-left: 2em;
  padding-top: 0.3em;
  width: 100%;
  font-weight: 500;
}

.company-history-item-content p:nth-of-type(2n-1) {
  color: #005094;
  font-weight: 700;
}

.company-history-item-content p:nth-of-type(3) {
  margin-top: 2.5em;
  position: relative;
  width: 100%;
}

.company-history-item-content p:nth-of-type(3)::before {
  content: "";
  position: absolute;
  top: -1.25em;
  left: -2em;
  width: calc(100% + 2em);
  height: 1px;
  background-color: #c4c4c4;
}

@media (max-width: 1024px) and (min-width: 768px) {
  #organization + .container {
    margin-left: 4vw;
    margin-right: 4vw;
  }
}

@media (max-width: 767px) {
  #history {
    padding-top: 7vw;
  }

  .company-history-item {
    padding: 3.3vw 0;
    align-items: flex-start;
  }

  .company-history-item::before {
    width: 18vw;
  }

  .company-history-item:first-of-type {
    margin-top: 5.5vw;
  }

  .company-history-item:first-of-type::after {
    width: 18vw;
  }

  .company-history-item-year {
    font-size: 6vw;
    min-width: 18vw;
    line-height: 1;
    padding-left: 2vw;
  }

  .company-history-item-content {
    font-size: 3vw;
    line-height: 1.31;
    padding-left: 3vw;
    width: 100%;
    font-weight: 500;
    padding-top: 0;
  }

  .company-history-item-content p:nth-of-type(3) {
    margin-top: 2.5em;
    position: relative;
    width: 100%;
  }

  .company-history-item-content p:nth-of-type(3)::before {
    content: "";
    position: absolute;
    top: -3.3vw;
    left: -2vw;
    width: calc(100% + 2vw);
    height: 1px;
    background-color: #c4c4c4;
  }
}

/* Fade-in animation styles */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in from left animation styles */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.fade-in {
  opacity: 1;
  transform: translateX(0);
}


.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.fade-in {
  opacity: 1;
  transform: translateX(0);
}
