@charset "utf-8";

.bukaiChart {
  max-width: 560px;
  width: 90%;
  margin: auto;
}

.bukaiChartLink:hover {
  opacity: 0.7;
  text-decoration: none;
}

.aisatsuTtl {
  font-weight: bold;
  text-align: center;
}

.aisatsuName {
  text-align: right;
}

.aisatsuImg {
  max-width: 200px;
  width: 45%;
  margin-bottom: 24px;
  margin-left: 24px;
  float: right;
}

@media only screen and (max-width : 425px) {
  .aisatsuImg {
    margin-bottom: 16px;
    margin-left: 16px;
  }
}



/*新組織図*/
.newBukaiChart {
  margin: 0 auto 40px;
}

.newBukaiChartInner {
  margin: 0 auto;
  --branch-gap: 24px;
}

.newBukaiChartRoot {
  padding: 16px;
  background-color: #d8ecf5;
  max-width: 360px;
  margin: 0 auto;
}

.newBukaiChartRoot p {
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.newBukaiChartJunction {
  position: relative;
  height: 36px;
  margin: 0 auto;
}

.newBukaiChartJunction::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 16px;
  background-color: #a0a0a0;
  transform: translateX(-50%);
}

.newBukaiChartJunction::after {
  content: "";
  position: absolute;
  left: calc(25% - (var(--branch-gap) / 4));
  right: calc(25% - (var(--branch-gap) / 4));
  top: 16px;
  height: 2px;
  background-color: #a0a0a0;
}

.newBukaiBranches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--branch-gap);
}

.newBukaiBrancheBox {
  position: relative;
}

.newBukaiBrancheBox::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 2px;
  height: 20px;
  background: #a0a0a0;
  transform: translateX(-50%);
}

.newBukaiTitle {
  margin: 0 0 8px;
  background: #2E4FB5;
  color: #fff;
  text-align: center;
  font-weight: 500;
  padding: 8px 12px;
}

.newBukaiGrid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.newBukaiGrid .newBukaiLink {
  width: 100%;
}

.newBukaiLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid #ccc;
  background: #fff;
  padding: 16px 8px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: transform 0.05s ease, box-shadow 0.15s ease;
  user-select: none;
  font-size: 14px;
  color: #000 !important;
}

.newBukaiLink:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.newBukaiLink:active {
  transform: translateY(1px);
}

.newBukaiNote {
  margin-top: 8px;
  font-size: 14px;
}

@media only screen and (max-width : 980px) {
  .newBukaiBranches {
    grid-template-columns: 1fr;
  }

  .newBukaiChartJunction {
    height: 16px;
  }

  .newBukaiChartJunction::before,
  .newBukaiChartJunction::after {
    display: none;
  }

  .newBukaiBrancheBox::before {
    display: none;
  }

  .newBukaiChartInner {
    --branch-gap: 16px;
  }
}

@media only screen and (max-width : 395px) {
  .newBukaiLink {
    font-size: 12px;
  }
}