.p-course_map {
  container-type: inline-size;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: noto-sans-cjk-jp, "Noto Sans JP", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
}
.p-course_map *,
.p-course_map *::before,
.p-course_map *::after {
  box-sizing: border-box;
}
.p-course_map ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-course_map h2, .p-course_map h3, .p-course_map h4, .p-course_map p {
  margin: 0;
}

.p-course_map_inner {
  aspect-ratio: 16/9;
  width: 100%;
  display: flex;
  flex-flow: column;
}

.p-course_map_grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 3.6cqw repeat(5, minmax(0, 1fr));
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 0.7cqw;
}

.p-course_map_corner {
  grid-column: 1;
  grid-row: 1;
}

.p-course_map_rowlabel {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  border-radius: 0.6cqw;
  color: #fff;
  font-size: 1.5cqw;
  font-weight: bold;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
.p-course_map_rowlabel.-adv {
  grid-row: 2;
  background: #14285A;
}
.p-course_map_rowlabel.-basic {
  grid-row: 3;
  background: #1E4C96;
}
.p-course_map_rowlabel.-intro {
  grid-row: 4;
  background: #697BAB;
}

.p-course_map_col {
  display: contents;
}
.p-course_map_col.-dx {
  --map-color: #294287;
}
.p-course_map_col.-dx > * {
  grid-column: 2;
}
.p-course_map_col.-ai {
  --map-color: #1489A7;
}
.p-course_map_col.-ai > * {
  grid-column: 3;
}
.p-course_map_col.-sec {
  --map-color: #C7514C;
}
.p-course_map_col.-sec > * {
  grid-column: 4;
}
.p-course_map_col.-office {
  --map-color: #2B8A5E;
}
.p-course_map_col.-office > * {
  grid-column: 5;
}
.p-course_map_col.-license {
  --map-color: #7A4FA3;
}
.p-course_map_col.-license > * {
  grid-column: 6;
}

.p-course_map_colhead {
  grid-row: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 0.3cqw;
  min-height: 5.2cqw;
  padding: 0.7cqw 1.2cqw;
  border-radius: 0.6cqw;
  background: var(--map-color);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.p-course_map_colhead:hover {
  opacity: 0.85;
}
.p-course_map_colhead .-en {
  position: absolute;
  right: 0.5cqw;
  bottom: -0.6cqw;
  font-family: Inter, noto-sans-cjk-jp, "Noto Sans JP", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 2.8cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.p-course_map_colhead strong {
  position: relative;
  font-size: 1.55cqw;
  font-weight: bold;
  line-height: 1.25;
}
.p-course_map_colhead p {
  position: relative;
  font-size: 0.95cqw;
  line-height: 1.3;
  opacity: 0.9;
}

.p-course_map_cell {
  min-height: 0;
  padding: 0.6cqw;
  border-radius: 0.6cqw;
  background: color-mix(in srgb, var(--map-color) 16%, #fff);
}
.p-course_map_cell.-adv {
  grid-row: 2;
}
.p-course_map_cell.-basic {
  grid-row: 3;
}
.p-course_map_cell.-intro {
  grid-row: 4;
}
.p-course_map_cell .-cell-label {
  display: none;
}
.p-course_map_cell ul {
  display: flex;
  flex-flow: column;
  gap: 0.45cqw;
  height: 100%;
}
.p-course_map_cell li {
  flex: 0 0 auto;
}
.p-course_map_cell a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5cqw;
  padding: 0.5cqw 0.8cqw;
  border: 1px solid #fff;
  border-radius: 0.4cqw;
  background: #fff;
  color: var(--map-color);
  font-size: 1cqw;
  font-weight: bold;
  line-height: 1.35;
  text-decoration: none;
  transition: all 0.3s ease;
}
.p-course_map_cell a::after {
  content: "";
  flex: 0 0 auto;
  display: block;
  width: 0.7cqw;
  height: 0.7cqw;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  position: relative;
  left: -0.2cqw;
  transition: all 0.3s ease;
}
.p-course_map_cell a:hover {
  background: var(--map-color);
  color: #fff;
}
.p-course_map_cell a:hover::after {
  left: 0;
}

@media screen and (max-width: 750px) {
  .p-course_map_inner {
    aspect-ratio: auto;
  }
  .p-course_map_grid {
    display: flex;
    flex-flow: column;
    gap: 1em;
  }
  .p-course_map_corner,
  .p-course_map_rowlabel {
    display: none;
  }
  .p-course_map_col {
    display: flex;
    flex-flow: column;
    gap: 0.5em;
  }
  .p-course_map_colhead {
    min-height: 0;
    padding: 0.8em 1em;
    border-radius: 8px;
    gap: 0.2em;
  }
  .p-course_map_colhead .-en {
    right: 0.4em;
    bottom: -0.3em;
    font-size: 32px;
  }
  .p-course_map_colhead strong {
    font-size: 16px;
  }
  .p-course_map_colhead p {
    font-size: 12px;
  }
  .p-course_map_cell {
    padding: 0.75em;
    border-radius: 8px;
  }
  .p-course_map_cell.-intro {
    order: 1;
  }
  .p-course_map_cell.-basic {
    order: 2;
  }
  .p-course_map_cell.-adv {
    order: 3;
  }
  .p-course_map_cell .-cell-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.5em;
    padding: 3px 10px;
    border-radius: 80px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.4;
  }
  .p-course_map_cell .-cell-label.-basic {
    background: #1E4C96;
  }
  .p-course_map_cell .-cell-label.-intro {
    background: #697BAB;
  }
  .p-course_map_cell .-cell-label.-adv {
    background: #14285A;
  }
  .p-course_map_cell ul {
    gap: 0.5em;
  }
  .p-course_map_cell a {
    padding: 0.75em;
    border-radius: 4px;
    font-size: 14px;
    gap: 0.5em;
  }
  .p-course_map_cell a::after {
    width: 8px;
    height: 8px;
    left: -3px;
  }
}
.p-course_map_section {
  padding: 4em 2em;
  background-color: #E5EDF5;
}
@media screen and (max-width: 767px) {
  .p-course_map_section {
    padding: 4em 1.5em;
  }
}
.p-course_map_section .p-course_map_section_read {
  text-align: center;
  margin: 0 0 2em;
}
.p-course_map_section .p-course_map a:hover {
  transform: none;
}
