/*
 * Company Profile — HTML replica of the Company Overview table.
 * All values are cloned from the theme (.company-about__inner table rules
 * in child-page/other/style.css): th 20rem (34.2rem on the EN table),
 * orange bar on the th span, white 2rem text with 1.55 line-height,
 * contact button (.a2 variant for EN), 71.7x32.4rem map iframe.
 */

.hibot-company__table {
  width: 100%;
  border-collapse: collapse;
}

.hibot-company__table th {
  width: 20rem;
  font-weight: 400;
  vertical-align: baseline;
  text-align: left;
}

@media (min-width: 768px) {
  .hibot-company--en .hibot-company__table th {
    width: 34.2rem;
  }
}

.hibot-company__table th span {
  font-size: 1em;
  position: relative;
  padding-left: 2rem;
}

.hibot-company__table th span::before {
  content: "";
  width: 0.2rem;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #ff521c;
}

.hibot-company__table th,
.hibot-company__table td {
  color: white;
  font-size: 2rem;
  line-height: 1.55em;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* The original English section carries the theme's .en-sec class: every
   text renders in Roboto Slab. The Japanese table inherits the global
   gothic font, as the original does. */
.hibot-company--en,
.hibot-company--en * {
  font-family: "Roboto Slab", sans-serif;
}

/* Contact button — clone of ".company-about__inner table td a" plus the
   .a2 variant used by the English table. */
.hibot-company__btn-wrap {
  font-size: 1em;
  display: flex;
}

.hibot-company__btn {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background-color: #ff521c;
  color: white;
  font-size: 1.6rem;
  line-height: 3.4rem;
  font-weight: 400;
  margin-top: -1rem;
  margin-left: 19.2rem;
  transition: all 0.4s;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.hibot-company__btn:hover {
  opacity: 0.7;
  color: white;
}

.hibot-company--en .hibot-company__btn {
  margin-left: 17rem;
  width: 11.5rem;
  font-size: 2rem;
  text-align: center;
}

/* Google Maps embed — in the original the iframe follows the address after
   a blank line (<br><br>): one line-height of margin reproduces the gap. */
.hibot-company__map {
  display: block;
  width: 71.7rem;
  height: 32.4rem;
  border: 0;
  margin-top: 1.55em;
}

@media (max-width: 767px) {
  .hibot-company__table th {
    width: 8rem;
    white-space: nowrap;
  }

  .hibot-company__table th span {
    padding-left: 1rem;
  }

  .hibot-company__table th,
  .hibot-company__table td {
    font-size: 1.4rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hibot-company--en .hibot-company__table th,
  .hibot-company--en .hibot-company__table td {
    font-size: 1.2rem;
  }

  .hibot-company__table td {
    width: calc(100% - 8rem);
    padding-left: 2rem;
  }

  .hibot-company__btn-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hibot-company__btn,
  .hibot-company--en .hibot-company__btn {
    margin-left: 0;
    margin-top: 1rem;
  }

  .hibot-company__btn {
    font-size: 1.4rem;
  }

  .hibot-company--en .hibot-company__btn {
    font-size: 1.6rem;
  }

  .hibot-company__map {
    width: 100%;
    height: 20rem;
  }
}

/* Editors viewing the unpublished working copy get a visible marker. */
.hibot-company.is-preview {
  position: relative;
  outline: 2px dashed rgba(255, 82, 28, 0.6);
  outline-offset: 0.5rem;
}

.hibot-company.is-preview::after {
  content: "PREVIEW — unpublished state";
  position: absolute;
  top: -3rem;
  right: 0;
  background: #ff521c;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  z-index: 5;
}
