.company-detail {
  position: relative;
  padding: 60px 0;
}

.company-detail>h2 {
  position: relative;
  text-align: center;
  font-size: 2.6em;
  color: #000000;
  margin-bottom: 3em;
}

.company-detail>h2::after {
  content: '';
  position: absolute;
  bottom: -1em;
  left: 50%;
  width: 50px;
  height: 1px;
  background-color: #37bbed;
  margin-left: -25px;
}

.company-detail {
  text-align: center;
}

.company-detail p{
  text-align: left;
  clear: both;
  overflow: hidden;
  font-size: 14px;

}
 .company-detail h3, .company-detail h4 {
  text-align: left;
  clear: both;
  overflow: hidden;
}

.company-detail h3 {
  color: #fff;
  font-size: 2.2em;
  padding: 15px 25px;
  box-sizing: border-box;
  background: url('../images/common/bg_ttl3.png');
  margin: 60px auto 40px;
}

.company-detail h4 {
  position: relative;
  font-size: 2.2em;
  color: #1f98d0;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.company-detail strong {
  position: relative;
  font-size: 1.4em;
  color: #1f98d0;
  box-sizing: border-box;
  margin: 2em auto 0 auto;
  display: block;
  font-weight: normal;
}

.company-detail h4::before {
  content: '';
  display: inline-block;
  vertical-align: baseline;
  margin-right: 10px;
  width: .4em;
  height: .4em;
  border: solid 4px #1f98d0;
  border-radius: 50%;
}

/* .company-detail a {
  transition: .3s;
  position: relative;
  display: inline-block;
  text-align: left;
  max-width: 53%;
  box-sizing: border-box;
  color: #fff;
  font-size: 1em;
  padding: 25px 80px 25px 50px;
  background-color: #000000;
}

.company-detail a:hover {
  opacity: .8;
}

.company-detail a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 50px;
  width: 1.2em;
  height: 1.2em;
  margin-top: -.6em;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
} */

.company-detail hr {
  margin: 2em auto 3em auto;
  border: dashed 1px #bebebe;
}

.company-detail ul {
  text-align: left;
  box-sizing: border-box;
  padding-left: 2em;
}

.company-detail ul li {
  list-style: inherit;
  font-size: 1.6em;
  color: #000000;
}

@media (max-width:1000px) {
  .company-detail>h2 {
    margin-bottom: 2em;
  }
  .company-detail {
    padding: 0;
  }
  .company-detail h3 {
    font-size: 1.8em;
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
  }
  .company-detail h4 {
    font-size: 1.8em;
  }
  .company-detail h4::before {
    content: '';
    display: inline-block;
    vertical-align: baseline;
    margin-right: 10px;
    width: .4em;
    height: .4em;
    border: solid 4px #1f98d0;
    border-radius: 50%;
  }
  /* .company-detail a {
    display: block;
    max-width: 100%;
    font-size: 1em;
    padding: 20px 40px 20px 20px;
    background-color: #000000;
  }
  .company-detail a::after {
    right: 20px;
  } */
  .company-detail strong {
    margin: 1.5em auto 0 auto;
  }
  .company-detail ul li {
    font-size: 1.4em;
  }
}

.company-detail.outline .txt-wrap, .company-detail.outline .img-wrap {
  float: left;
  box-sizing: border-box;
  width: 50%;
  overflow: hidden;
  margin-bottom: 60px;
}

.company-detail.outline .img-wrap {
  margin: 0 auto;
  text-align: center;
  padding-left: 40px;
}

.company-detail.outline .img-wrap p {
  margin: 10px 0 0 0;
  text-align: center;
}

.company-detail.outline table {
  margin: 0 auto;
  width: 85%;
  position: relative;
  clear: both;
  text-align: left;
  border-collapse: collapse;
  box-sizing: border-box;
}

.company-detail.outline table td {
  color: #000000;
  box-sizing: border-box;
  font-size: 1.4em;
  border-top: solid 1px #bebebe;
  border-bottom: solid 1px #bebebe;
  vertical-align: top;
  padding: 20px;
}

.company-detail.outline ul li {
  list-style: square;
}

@media (max-width:1000px) {
  .company-detail.outline .txt-wrap, .company-detail.outline .img-wrap {
    float: none;
    padding: 0;
    margin-bottom: 30px;
    width: 100%;
  }
  .company-detail.outline table {
    width: 100%;
  }
  .company-detail.outline table td {
    display: inline-block;
    width: 100%;
    padding: 5px 10px;
    border: none;
  }
  .company-detail.outline table tr td:first-child {
    border-top: solid 1px #bebebe;
  }
  .company-detail.outline table tr:last-child td:last-child {
    border-bottom: solid 1px #bebebe;
  }
}

.company-detail.history, .company-detail.locations, .company-detail.delivery {
  padding-right: 80px;
  padding-left: 80px;
}

.company-detail.history h3 {
  margin-bottom: 10px;
}

.company-detail.history table {
  position: relative;
  width: 100%;
  border-collapse: separate;
  font-size: 1.4em;
  color: #000000;
  box-sizing: border-box;
}

.company-detail.history table th {
  box-sizing: border-box;
  text-align: center;
  font-weight: normal;
  padding: 15px 10px;
  color: #fff;
  background-color: #bebebe;
}

.company-detail.history .even {
  background-color: #f6f6f6;
}

.company-detail.history table:first-of-type {
  border-collapse: collapse;
}

.company-detail.history table td {
  text-align: left;
  box-sizing: border-box;
  vertical-align: top;
  padding: 15px 10px;
}

.company-detail.history table:last-of-type tr td:first-child, .company-detail.history table:last-of-type tr td:nth-child(2), .company-detail.history table tr th:first-child {
  white-space: nowrap;
}

.history-table-two br {
  display: none;
}

@media (max-width:1000px) {
  .company-detail.history table td span {
    display: block;
  }
  .company-detail.history table:last-of-type tr td:nth-child(2) {
    white-space: normal;
  }
  .company-detail.history table th, .company-detail.history table td {
    padding: 10px 5px;
    font-size: .9em;
  }
  .company-detail.history table:last-of-type tr th:nth-child(2), .company-detail.history table:last-of-type tr td:nth-child(2), .company-detail.history table:last-of-type tr th:nth-child(3), .company-detail.history table:last-of-type tr td:nth-child(3) {
    width: 40%;
  }
  .company-detail.history table td {
    white-space: nowrap;
  }
  .company-detail.history table tr td:last-child {
    white-space: normal;
  }
  .history-table tr td {
    display: inline-block;
    width: 10%;
    text-align: left;
  }
  .history-table tr td:last-child {
    display: inline-block;
    width: 88%;
  }
  .history-table td.row-year {
    display: block;
    width: 100%;
    padding-bottom: 0 !important;
  }
  .history-table-two br {
    display: inherit;
  }
  .history-table-two tr td:first-child {
    text-align: center;
  }
}

.company-detail.locations p {
  font-size: 2.2em;
  color: #1f98d0;
}

.company-detail.locations table {
  box-sizing: border-box;
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4em;
  color: #000000;
}

.company-detail.locations table td {
  border-top: solid 1px #bebebe;
  border-bottom: solid 1px #bebebe;
  text-align: left;
  box-sizing: border-box;
  vertical-align: top;
  padding: 20px;
}

.company-detail.locations table td a {
  position: relative;
  color: #fff;
  font-size: 10px;
  display: inline-block;
  vertical-align: super;
  line-height: 1;
  padding: 5px 15px 5px 5px;
  background-color: #3c3c3c;
}

.company-detail.locations table td a::after {
  position: absolute;
  content: '';
  top: 50%;
  right: 5px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.company-detail.locations table tr td:first-child {
  white-space: normal;
}

@media (max-width:1000px) {
  .company-detail.history, .company-detail.locations, .company-detail.delivery {
    padding-right: 0;
    padding-left: 0;
  }
  .company-detail.locations p {
    text-align: center;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .company-detail.locations table td {
    border: none;
    padding: 10px;
    display: block;
    width: 100%!important;
    height: auto!important;
  }
  .company-detail.locations table tr td:first-child {
    white-space: normal;
    padding-bottom: 0;
    border-top: 1px solid #bebebe;
  }
  .company-detail.locations table tr td:last-child {
    position: relative;
    padding-bottom: 38px;
  }
  .company-detail.locations table tr td:last-child a {
    position: absolute;
    bottom: 10px;
    left: 10px;
  }
  .company-detail.locations table tr:last-child td:last-child {
    border-bottom: 1px solid #bebebe;
  }
}

.company-detail.related .txt-wrap, .company-detail.related .txt-wrap+p {
  clear: none;
  float: left;
  box-sizing: border-box;
  width: 50%;
}
.company-detail.related .wp-block-image {
	margin-bottom: 1em;
	width: 50%;
	float: right;
	margin: 0;
}
.company-detail.related img {
  box-sizing: border-box;
  padding-left: 40px;
}

.company-detail.related hr {
  clear: both;
}

.company-detail.related .txt-wrap a {
  color: #1f98d0;
}

.company-detail.related .txt-wrap a:hover {
  text-decoration: underline;
}

@media (max-width:1000px) {
  .company-detail.related .txt-wrap, .company-detail.related .txt-wrap+p {
    clear: both;
    float: none;
    box-sizing: border-box;
    width: 100%;
  }
	.company-detail.related .wp-block-image {
		width: 100%;
		float: auto;
		margin-bottom:30px;
	}
	.company-detail.related .wp-block-image img {
		padding-left:0;
		width: 100%;
	}
  .company-detail.related .txt-wrap+p img {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .company-detail.related .txt-wrap {
    margin-bottom: 30px;
  }
}

.company-detail.delivery table {
  width: 100%;
  position: relative;
  clear: both;
  text-align: left;
  border-collapse: separate;
  font-size: 1.4em;
  color: #000000;
}

.company-detail.delivery h3 {
  clear: both;
  margin-bottom: 0;
}

.company-detail.delivery table td {
  width: 50%;
  box-sizing: border-box;
  padding: 15px 20px;
}

.company-detail.delivery table tr:nth-child(2n) td {
  background-color: #f6f6f6;
}

.company-detail.delivery figure {
  float: left;
  width: 32%;
  max-width: 32% !important;
  box-sizing: border-box;
  margin: 0 auto;
}

.company-detail.delivery figure:nth-last-of-type(2) {
  margin: 0 16px;
}

.company-detail.delivery figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.company-detail.delivery figure figcaption {
  display: block;
  text-align: left;
  margin-top: 5px;
  font-size: 1.4em;
  color: #000000;
}

@media (max-width:1000px) {
  .company-detail.delivery table {
    border-collapse: collapse;
  }
  .company-detail.delivery table td {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #fff;
  }
  .company-detail.delivery table tr:nth-child(2n) td {
    background-color: #fff;
  }
  .company-detail.delivery table tr td:last-child {
    background-color: #f6f6f6;
  }
  .company-detail.delivery figure {
    float: none;
    width: 100%;
    max-width: 100% !important;
    padding: 20px;
  }
  .company-detail.delivery figure:nth-last-of-type(2) {
    margin: 0 auto;
  }
}