section.companyinfo-wrap {
  padding: 24px 40px 64px 40px;
  background-color: var(--c-background-1, #FFF);
  text-align: center;
}

.companyinfo {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  grid-gap: 40px;
}

.company-container {
  width: 100%;
  text-align: left;
  word-break:break-word;
}

.company-content {
  display: flex;
  flex-direction: column;
  grid-gap: 24px;
  margin-top: 40px;
}



/* ------------------------------
企業情報
------------------------------ */
.company-overview {
  display: flex;
  flex-direction: row;
  grid-gap: 32px;
}

.company-overview p {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: 26px;
  font-weight: var(--weight-R, 400);
  max-width: 570px;
}

.company-overview img {
  width: 360px;
  height: 240px;
  object-fit: cover;
}

/* ------------------------------
会社概要
------------------------------ */
.company-information {
  display: flex;
  flex-direction: row;
  grid-gap: 32px;
}

.company-table {
  flex: 1;
}

.company-tr {
  display: flex;
  flex-direction: row;
  grid-gap: 24px;
}

.company-tr::before {
  content: "";
  border-left: 2px solid var(--c-brand-primary, #1850BF);
}

.company-th {
  color: var(--c-brand-primary-dark, #0D4199);
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  width: 120px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.inline-wrap {
  display: flex;
  flex-wrap: wrap;
  grid-column-gap: 12px;
  grid-row-gap: 8px;
}

.company-td {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  margin-bottom: 24px;
}

.company-td span.tag {
  padding: 0 12px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-12, 12px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
}

.map-button {
  display: flex;
  align-items: center;
  color: var(--c-brand-primary, #1850BF);
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  margin-top: 16px;
}

.map-button::after {
  content: '';
  display: inline-block;
  background-image: url('../../assets/images/icons/map.svg');
  margin-left: 4px;
  width: 12px;
  height: 16px;
}

/* ------------------------------
代表挨拶
------------------------------ */
.representative-message {
  display: flex;
  flex-direction: row;
  grid-gap: 32px;
}

.message-title {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-B, 600);
  margin-bottom: 16px;
}

.message-text {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: 26px;
  font-weight: var(--weight-R, 400);
}

.representative-message img {
  width: 360px;
  height: 240px;
  object-fit: cover;
}

/* ------------------------------
拠点
------------------------------ */
.network {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.network-list {
  display: flex;
  flex-direction: row;
}

.network-list::before {
  content: "";
  border-left: 2px solid var(--c-brand-primary, #1850BF);
  margin-right: 32px;
}

.network-list .display-map {
  width: 400px;
  height: 200px;
}

.company-td .display-map {
  width: 300px;
  height: 150px;
}

.map {
	width: 100%;
	height: 300px;
	overflow: hidden;
}
.map iframe {
	height: calc(300px + 360px);
	margin-top: -170px;
}

.network-info {
  flex: 1;
  margin-right: 24px;
}

.network-info p {
  color: var(--c-text-1, rgba(0, 0, 0, 0.88));
  font-size: var(--font-16, 16px);
  line-height: var(--lineheight-16, 24px);
  font-weight: var(--weight-B, 600);
  margin-bottom: 16px;
}

.address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address p {
  color: var(--c-text-2, rgba(0, 0, 0, 0.72));
  font-size: var(--font-14, 14px);
  line-height: var(--lineheight-14, 22px);
  font-weight: var(--weight-R, 400);
  margin-bottom: 0;
}

/* ------------------------------
沿革
------------------------------ */
.history table {
  display: table;
  border-collapse:collapse;
  width: 100%;
}

.history tr {
  display: table-row;
}

.history tr:last-child {
  border-bottom: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
}

.history th {
  font-weight: var(--weight-B, 600);
  padding: 12px 16px;
  background-color: var(--c-surface-3, rgba(68, 94, 131, 0.08));
  border-top: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  border-left: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  vertical-align: top;
}

.history th.year {
  width: 160px;
}

.history th.month {
  width: 80px;
}

.history td {
  font-weight: var(--weight-R, 400);
  padding: 12px 16px;
  background-color: var(--c-surface-1, #FFF);
  border-top: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  border-right: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
  border-left: 1px solid var(--c-border-1, rgba(68, 94, 131, 0.16));
}

.history td.primary {
  color:var(--c-brand-primary, #1850BF);
}

/* ---------------- デスクトップ-Lサイズ（基本はstyle.cssに記述） ----------------- */
@media only screen and (min-width: 1080px) {

}

/* --------------------------　デスクトップ-Mサイズ -------------------------- */
@media only screen and (min-width: 744px) and (max-width: 1079px) {
  /* ------------------------------
  企業情報
  ------------------------------ */
  .company-overview {
    flex-direction: column-reverse;
    grid-gap: 20px;
  }

  .company-overview img {
    width: 64%;
    height: auto;
    object-fit: cover;
  }

  /* ------------------------------
  代表挨拶
  ------------------------------ */
  .representative-message {
    flex-direction: column;
    grid-gap: 20px;
  }

  .representative-message img {
    width: 64%;
    height: auto;
    max-height: 320px;
  }

  /* ------------------------------
  会社概要
  ------------------------------ */
  .company-information {
    flex-direction: column;
    grid-gap: 0px;
  }

  /* ------------------------------
  拠点
  ------------------------------ */
  .network-list iframe {
    width: 320px;
    height: 200px;
  }

  .network-list::before {
    margin-right: 24px;
  }

  /* ------------------------------
  沿革
  ------------------------------ */
  .history th.year {
    width: 0;
    white-space:nowrap;
  }

  .history th.month {
    width: 0;
    white-space:nowrap;
  }
}
/* -------------------------- モバイルサイズ -------------------------- */
@media only screen and (max-width: 743px) {
  section.companyinfo-wrap {
    padding: 20px 20px 32px 20px;
    text-align: left;
  }

  .companyinfo {
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .company-content {
    grid-gap: 20px;
    margin-top: 24px;
  }

  /* ------------------------------
  企業情報
  ------------------------------ */
  .company-overview {
    flex-direction: column-reverse;

    grid-gap: 20px;
  }

  .company-overview p {
    line-height: var(--lineheight-14, 22px);
  }

  .company-overview img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* ------------------------------
  会社概要
  ------------------------------ */
  .company-information {
    flex-direction: column;
    grid-gap: 0px;
  }

  .company-table {
    flex: 1;
  }

  .company-tr {
    grid-gap: 12px;
  }

  .company-th {
    font-size: var(--font-12, 12px);
    line-height: var(--lineheight-12, 18px);
    width: 100px;
    margin-bottom: 20px;
  }

  .inline-wrap {
    grid-column-gap: 4px;
    grid-row-gap: 4px;
  }

  .company-td {
    font-size: var(--font-12, 12px);
    line-height: var(--lineheight-12, 18px);
    margin-bottom: 20px;
    word-break: break-word;
  }

  .company-td span.tag {
    padding: 0 8px;
    height: 18px;
    font-size: var(--font-10, 10px);
    line-height: var(--lineheight-12, 18px);
  }

  .company-td .display-map,
  .network-list .display-map {
    width: 100%;
  }

  .address-width {
    width: 100%;
  }

  .map-button {
    font-size: var(--font-12, 12px);
    line-height: var(--lineheight-12, 18px);
    margin-top: 8px;
  }

  /* ------------------------------
  代表挨拶
  ------------------------------ */
  .representative-message {
    flex-direction: column;
    grid-gap: 20px;
  }

  .message-title {
    margin-bottom: 8px;
  }

  .message-text {
    line-height: var(--lineheight-14, 22px);
  }

  .representative-message img {
    width: 100%;
    height: auto;
  }

  /* ------------------------------
  拠点
  ------------------------------ */
  .network {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .network-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--c-brand-primary, #1850BF);
    margin-right: 0;
  }

  .network-list::before {
    content: none;
  }

  .network-list iframe {
    width: 100%;
    height: 200px;
  }

  .network-info p {
    font-size: var(--font-14, 14px);
    line-height: var(--lineheight-14, 22px);
    margin-bottom: 8px;
  }

  .address {
    gap: 0px;
  }

  .address p {
    font-size: var(--font-12, 12px);
    line-height: var(--lineheight-12, 18px);
    margin-bottom: 0;
  }

  /* ------------------------------
  沿革
  ------------------------------ */
  .history th {
    padding: 12px;
  }

  .history th.year {
    width: 0;
    white-space: nowrap;
  }

  .history th.month {
    width: 0;
    white-space: nowrap;
  }

  .history td {
    padding: 12px;
  }

}
