/* =========================================
  Company Page
========================================= */
.company-page {
  position: relative;
}

/* =========================================
  Company Section
========================================= */
.company {
  position: relative;
}

/* =========================================
  Info Table（共通テーブル）
========================================= */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-table {
	min-width: 500px;
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  table-layout: fixed;
  border-top: 1px solid #d7dde5;
  border-left: 1px solid #d7dde5;
}

/* 共通セル */
.info-table th,
.info-table td {
  border-right: 1px solid #d7dde5;
  border-bottom: 1px solid #d7dde5;
  vertical-align: top;
}

/* 左列（項目） */
.info-table th {
  width: 180px;
  padding: 18px 14px;
  background: #f3f5f8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-main);
  text-align: left;
  word-break: keep-all;
}

/* 右列（内容） */
.info-table td {
  padding: 18px 20px;
  background: var(--color-white);
  font-size: 14px;
  line-height: 1.9;
}

/* 改行の余白 */
.info-table td br {
  line-height: 2;
}

.org-chart {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.org-chart__root {
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}

.org-chart__branches {
  position: relative;
  padding-left: 22px;
}

/* 取締役会から右側への横線 */
.org-chart__branches::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 1px;
  background: var(--color-line);
}

/* 右側の縦ライン */
.org-chart__branches::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 12px;
  width: 1px;
  background: var(--color-line);
}

.org-node {
  position: relative;
  margin-top: 18px;
}

.org-node:first-child {
  margin-top: 0;
}

/* 縦ラインから各部署への横線 */
.org-node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 14px;
  width: 14px;
  height: 1px;
  background: var(--color-line);
}

.org-node:first-child::before {
  left: -35px;   /* ← 左に伸ばす */
}

.org-node__label {
  line-height: 1.8;
  white-space: nowrap;
}

.org-node--has-children {
  margin-bottom: 8px;
}

.org-children {
  list-style: none;
  margin: 8px 0 0 24px;
  padding: 0 0 0 18px;
  position: relative;
}

.org-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  bottom: 10px;
  width: 1px;
  background: var(--color-line);
}

.org-children li {
  position: relative;
  margin-top: 12px;
  line-height: 1.8;
  white-space: nowrap;
}

.org-children li:first-child {
  margin-top: 0;
}

.org-children li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 14px;
  width: 12px;
  height: 1px;
  background: var(--color-line);
}

/* =========================================
  Button
========================================= */
.company-button {
  margin-top: 16px;
}

.company-button .btn--line-left .btn__line {
	right: calc(50% + 5.5em);
}

.security-action .btn--line-left .btn__line {
	right: calc(50% + 4.5em);
}

/* =========================================
  Security Action
========================================= */
.security-action {
  margin-top: 25px;
}

.security-action p {
  font-size: 14px;
	font-weight: 600;
	margin: 0 0 14px;
}

/* =========================================
  Group Company
========================================= */

.company-group {
  margin-top: 80px;
}

.company-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.company-group__title span {
  display: block;
  width: 16px;
  height: 3px;
  background: var(--color-main);
}

.group-card {
  border: 1px solid #d7dde5;
}

.group-card__header {
  background: #f3f5f8;
  border-bottom: 1px solid #d7dde5;
  padding: 16px 20px;
  font-weight: 700;
}

.group-card__body {
  padding: 20px;
}

.group-card__text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.group-card__logo {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.group-card__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.group-card__note {
  font-size: 13px;
}

/* =========================================
  Responsive
========================================= */
@media screen and (max-width: 768px) {

  .info-table {
    margin-top: 24px;
  }

  .info-table th {
    width: 110px;
    padding: 12px 10px;
    font-size: 14px;
    line-height: 1.7;
  }

  .info-table td {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.8;
  }

  .btn-primary {
    padding: 10px 16px;
    font-size: 14px;
  }

  .security-action {
    margin-top: 30px;
  }

  .security-action p {
    font-size: 14px;
  }

	.org-chart__branches::after {
		bottom: 10px;
	}

}