@charset "UTF-8";
/* Top page only (index.html): gothic font, larger text, compact company info, bottom image */
body,
body * {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, 'Yu Gothic', 'YuGothic', sans-serif;
}

p {
  font-size: 16px;
  line-height: 1.8;
  /* Avoid a single character left alone on the last line (modern browsers) */
  text-wrap: pretty;
}

#top #about .container > p {
  font-size: 18px;
}

#top #about table {
  width: auto;
  margin: 0 auto 20px;
  padding: 0;
  border-collapse: collapse;
}

#top #about table th,
#top #about table td {
  display: table-cell;
  padding: 4px 12px;
  font-size: 16px;
  line-height: 1.7;
  vertical-align: top;
  white-space: nowrap;
}

#top #about table th {
  font-weight: normal;
}

footer .footer-link .footer-left ul {
  width: auto;
  min-width: 190px;
  margin-right: 30px;
}

footer .footer-link .footer-left ul li a {
  font-size: 16px;
  white-space: nowrap;
}

footer p.copyright {
  font-size: 14px;
}

footer .footer-link .footer-right p {
  font-size: 14px;
}

/* Match the body text size of the "about Kii" section (18px) in all other sections (desktop only; mobile keeps its own sizes) */
@media (min-width: 768px) {
  #top section#mv p:nth-of-type(3),
  #top section#iot p,
  #top section.solution p,
  #top section#recruit .col-md-8 p,
  #top section#recruit2 p,
  section#press-release p.release {
    font-size: 18px;
  }

  section#recruit2 h4 {
    font-size: 18px;
  }

  span.release-date {
    font-size: 16px;
    width: 150px;
    white-space: nowrap;
    top: 5px;
  }

  p.release {
    padding-left: 155px;
  }
}

/* Paragraph gap: about one line of text instead of roughly two */
#top #about .container > p,
#top section#recruit .col-md-8 p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* Company info (left) and image (right) side by side */
.company-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

#top #about .company-info table {
  flex: 0 0 auto;
  margin: 0;
}

.bottom-image {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  line-height: 0;
}

.bottom-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .company-info {
    display: block;
  }

  #top #about .company-info table {
    margin: 0 auto 20px;
  }

  #top #about table th,
  #top #about table td {
    white-space: normal;
  }
}
