.main-visual .page-name {
  color: #000;
}

.page-header {
  background-color: #addef8;
}

.section {
  max-width: 880px;
  width: 90%;
  margin-inline: auto;
}

.hachioji {
  margin-top: 8rem;
}
.hachioji > .section-title {
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.1em;
}
.hachioji .station {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 2rem;
}
.hachioji .station .img .note {
  position: static;
  text-align: right;
}
.hachioji .from-hachioji {
  margin-top: 2rem;
}
.hachioji .from-hachioji .title {
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.1em;
}
.hachioji .from-hachioji .information {
  margin-top: 1rem;
}

.diagram {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 0.66fr;
  gap: 4rem 1.8rem;
}
.diagram .name + .img {
  margin-top: 1rem;
}

.other-transportation {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
}
.other-transportation .detail {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  grid-template-rows: repeat(2, auto) 1fr;
  -webkit-column-gap: 1.3rem;
     -moz-column-gap: 1.3rem;
          column-gap: 1.3rem;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}
.other-transportation .title {
  -webkit-box-ordinal-group: 3;
      -ms-flex-order: 2;
          order: 2;
  font-size: 16px;
  text-align: center;
  padding: 1rem 5px;
  background-color: #000;
  clip-path: polygon(10px 0%, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative;
  z-index: 1;
}
.other-transportation .title::after {
  background-color: #fff;
  clip-path: polygon(10px 0%, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  content: "";
  height: calc(100% - 2px);
  width: calc(100% - 2px);
  display: block;
  position: absolute;
  z-index: -1;
  top: 1px;
  left: 1px;
}
.other-transportation .img {
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
  grid-row: span 3;
}
.other-transportation .text {
  -webkit-box-ordinal-group: 4;
      -ms-flex-order: 3;
          order: 3;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 1rem;
}
.other-transportation .note {
  -webkit-box-ordinal-group: 5;
      -ms-flex-order: 4;
          order: 4;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .other-transportation {
    grid-template-columns: 1fr;
  }
  .other-transportation .detail {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 520px) {
  .hachioji {
    margin-top: 6rem;
  }
  .hachioji .station {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagram {
    grid-template-columns: 1fr;
  }
  .other-transportation {
    grid-template-columns: 1fr;
  }
  .other-transportation .detail {
    grid-template-columns: repeat(2, 1fr);
  }
}