/* ===== Company page ===== */

/* 下層ページタイトル */
.company-hero {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.company-hero-image {
  position: absolute;
  inset: 0;
  background-image: url("/images/company-hero.jpg?v=3");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.company-hero-title {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.company-hero-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: bold;
}

.company-hero-title p {
  margin: 8px 0 0;
  font-size: 14px;
}

/* 会社概要 */
.company-profile {
  padding-top: 45px;
  padding-bottom: 55px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 35px;
  font-size: 18px;
  line-height: 1.7;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #bbb;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 25%;
  font-weight: normal;
}

.company-table td p {
  margin: 0 0 10px;
}

.company-table td p:last-child {
  margin-bottom: 0;
}

/* SECURITY ACTION */
.security-action {
  padding-top: 45px;
  padding-bottom: 65px;
}

.security-action-content {
  display: flex;
  align-items: flex-start;
  gap: 45px;
  margin-top: 35px;
}

.security-action-image {
  flex: 0 0 32%;
  text-align: center;
}

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

.security-action-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
}

.security-action-text h3 {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: normal;
}

.security-action-text p {
  margin: 0 0 18px;
}

@media (max-width: 768px) {
  .company-hero {
    height: 180px;
  }

  .company-hero-title h1 {
    font-size: 28px;
  }

  .company-profile,
  .security-action {
    padding-top: 35px;
    padding-bottom: 40px;
  }

  .company-table {
    font-size: 16px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: auto;
    padding: 12px 10px;
  }

  .company-table th {
    padding-bottom: 3px;
    font-weight: bold;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 3px;
  }

  .security-action-content {
    display: block;
  }

  .security-action-image {
    max-width: 300px;
    margin: 0 auto 30px;
  }

  .security-action-text {
    font-size: 16px;
  }
}

/* ===== Company page original layout correction ===== */
@media (min-width: 769px) {

  /* 元ページの本文幅 */
  .company-page .content-inner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 会社概要 */
  .company-profile {
    padding-top: 35px;
    padding-bottom: 50px;
  }

  .company-table {
    margin-top: 30px;
  }

  .company-table th,
  .company-table td {
    padding: 13px 10px;
  }

  .company-table th {
    width: 160px;
  }

  /* SECURITY ACTION */
  .security-action {
    padding-top: 25px;
    padding-bottom: 65px;
  }

  .security-action-content {
    max-width: 760px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 70px;
    align-items: center;
  }

  .security-action-image {
    width: 220px;
  }

  .security-action-image img {
    width: 100%;
    height: auto;
  }

  .security-action-text {
    font-size: 16px;
    line-height: 1.65;
  }

  .security-action-text h3 {
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    color: #0c5980;
    white-space: nowrap;
  }

  .security-action-text p {
    margin: 0 0 18px;
  }
}


/* SECURITY ACTION subtitle */
.security-action-subtitle {
  margin: 35px 0 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  font-weight: normal;
  color: #0c5980;
}

@media (min-width: 769px) {
  .security-action-content {
    margin-top: 35px;
  }
}


@media (min-width: 769px) {
  .security-action-subtitle {
    font-size: 24px;
  }
}


/* Company section heading color */
.company-page .section-title,
.company-page .section-title span {
  color: #0c5980;
}


/* SECURITY ACTION subtitle - original typography */
.security-action-subtitle {
  color: #0c5980;
  font-family: "Yu Mincho", "YuMincho",
               "Hiragino Mincho ProN", "Hiragino Mincho Pro",
               "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
}


/* Company headings - match original */
.company-profile h2.section-title > span,
.security-action h2.section-title > span {
  color: #05161a !important;
}

.company-profile h2.section-title,
.security-action h2.section-title {
  border-bottom-color: #d7e5eb !important;
}

/* SECURITY ACTION sub heading */
.security-action-subtitle {
  color: #0c5980 !important;
}


/* 企業情報ヘッダー文字の視認性 */
.company-hero-title h1,
.company-hero-title p {
  text-shadow:
    0 0 4px rgba(255,255,255,.95),
    0 0 8px rgba(255,255,255,.85);
}
