@charset "UTF-8";

.p-company {
  margin-top: clamp(120px, 12.75vw, 153px);
  margin-bottom: clamp(120px, 10.980966325vw, 150px);
  position: relative;
}

.p-company__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
  max-width: 926px;
  margin-inline: auto;
  margin-bottom: clamp(120px, 11.7130307467vw, 160px);
}
@media screen and (min-width:1024px) {
  .p-company__top {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

.p-company__text-content {
  max-width: 400px;
}
@media screen and (min-width:1024px) {
  .p-company__text-content {
    margin-top: 73px;
  }
}

.p-company__top-title {
  font-size: clamp(22px, 2.3333333333vw, 28px);
  line-height: 1.4642857143;
  letter-spacing: 4.2px;
  font-weight: 700;
}

.p-company__texts {
  margin-top: 11px;
}

.p-company__top-text {
  margin-top: 39px;
  font-size: clamp(14px, 1.0980966325vw, 15px);
  line-height: 1.6666666667;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.p-company__title {
  padding-block: 12px;
  padding-left: 34px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: 3.6px;
  font-weight: 700;
  position: relative;
}
.p-company__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: #5ba8db;
}

.p-company__table-wrap {
  width: 100%;
  margin-top: 71px;
  margin-inline: auto;
  max-width: 850px;
  overflow-x: auto;
}

.p-company__table {
  width: clamp(600px, 62.2254758419vw, 850px);
  margin-inline: auto;
  border: 1px solid #b1b1b1;
  border-radius: 10px;
  background: #ffffff;
}

.p-company__table-row {
  display: grid;
  grid-template-columns: 143px 1fr;
}
.p-company__table-row:first-of-type {
  padding-top: 5px;
}
.p-company__table-row:nth-of-type(n + 2) {
  border-top: 1px solid #a7a7a7;
}

.p-company__table-title {
  padding-block: 25px;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1.4285714286;
  font-weight: 700;
  position: relative;
  -ms-flex-line-pack: center;
      align-content: center;
  text-align: center;
}
.p-company__table-title::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 2px;
  height: calc(100% - 20px);
  background: url("../images/table-line.svg") center/contain repeat;
}

.p-company__table-text {
  padding-block: 25px;
  padding-left: 41px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  line-height: 1.4285714286;
  font-weight: 500;
}

.p-company__img {
  margin-top: 30px;
  width: min(100%, 440px);
  aspect-ratio: 440/500;
  border-radius: 20px;
  position: relative;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-company__img {
    margin-inline: 0;
  }
}
.p-company__img img {
  border-radius: 20px;
}

.p-company__content {
  padding-top: clamp(80px, 8.3333333333vw, 100px);
  border-top: 1px solid #b1b1b1;
}
.p-company__content .p-company__title {
  margin-top: clamp(80px, 7.3206442167vw, 100px);
}
.p-company__content .p-company__title:first-of-type {
  margin-top: 0;
}
.p-company__content .p-company__title:last-of-type {
  margin-top: clamp(96px, 10.0292825769vw, 137px);
}

.p-company__item-text {
  margin-top: 27px;
  font-size: 15px;
  line-height: 1.6666666667;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.p-company__map {
  margin-top: clamp(40px, 5.0512445095vw, 69px);
  max-width: 848px;
  margin-inline: auto;
}
.p-company__map iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #b1b1b1;
  border-radius: 10px;
  min-height: 300px;
}

.p-company__flex {
  margin-top: 45px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-width: 848px;
  margin-inline: auto;
  gap: 40px;
}
@media screen and (min-width:1024px) {
  .p-company__flex {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}
.p-company__flex .p-company__table-wrap {
  max-width: 464px;
  margin-top: 0;
}
.p-company__flex .p-company__table {
  width: min(100%, 464px);
}

.p-company__flex .p-company__table-row {
  grid-template-columns: 90px 1fr;
}
@media screen and (min-width:768px) {
  .p-company__flex .p-company__table-row {
    grid-template-columns: 143px 1fr;
  }
}

.p-company__flex-img {
  max-width: 345px;
  aspect-ratio: 348/286;
  border: 1px solid #b1b1b1;
  border-radius: 10px;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-company__flex-img {
    margin-inline: 0;
  }
}
.p-company__flex-img img {
  border-radius: 10px;
}
.p-company__history-wrap {
  margin-top: 55px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
}

.p-company__history {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.p-company__history + .p-company__history {
  margin-top: 30px;
}

.p-company__history-time {
  width: 76px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
@media screen and (min-width:768px) {
  .p-company__history-time {
    width: 100px;
    font-size: 18px;
  }
}

.ball {
  width: 12px;
  height: 12px;
  margin-inline: 10px 12px;
  background: #1b62cf;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
@media screen and (min-width:768px) {
  .ball {
    margin-inline: 40px 47px;
  }
}

.connecting-line {
  z-index: 0;
}

.p-company__history-item {
  padding-block: 10px;
  padding-inline: 16px 12px;
  max-width: 659px;
  position: relative;
  z-index: 1;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.p-company__history-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 10px;
  opacity: 0.8;
  z-index: -1;
}
@media screen and (min-width:768px) {
  .p-company__history-item {
    padding-block: 26px;
    padding-inline: 32px 28px;
  }
}

.p-company__history-title {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1.08px;
  font-weight: 700;
}
@media screen and (min-width:768px) {
  .p-company__history-title {
    font-size: 18px;
  }
}

.p-company__history-text {
  margin-top: 27px;
  font-size: clamp(14px, 1.0980966325vw, 15px);
  line-height: 1.6666666667;
  letter-spacing: 1.2px;
  font-weight: 500;
}