.group-map {
  width: 100%;
}

.group-map__pc {
  display: block;
}

.group-map__sp,
.group-map__sdx {
  display: none;
}

.group-map__image-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.group-map__image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.group-map__hotspot {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.001);
  outline-offset: 2px;
}

.group-map__hotspot::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--group-map-line, #173f7a);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.group-map__hotspot:hover::after,
.group-map__hotspot:focus-visible::after {
  transform: scaleX(1);
}

.group-map__hotspot:focus-visible {
  outline: none;
}

.group-map__hotspot--chugoku { --group-map-line: #94ba40; }
.group-map__hotspot--kyoto { --group-map-line: #5fa9ac; }
.group-map__hotspot--osaka { --group-map-line: #6baf80; }
.group-map__hotspot--kanto { --group-map-line: #68b1da; }
.group-map__hotspot--sdx { --group-map-line: #093270; }

@media screen and (max-width: 767px) {
  .group-map__pc {
    display: none;
  }

  .group-map__sp {
    display: block;
  }

  .group-map__sp > img {
    display: block;
    width: 100%;
    height: auto;
  }

  #seiwa-group.groups .group-map__accordions {
    display: block;
    margin-top: 20px;
  }

  #seiwa-group.groups .group-map__panel {
    --group-map-accent: #68b1dc;
    display: block;
    margin: 0 0 10px;
  }

  #seiwa-group.groups #osaka { --group-map-accent: #6bad7f; }
  #seiwa-group.groups #kyoto_hyogo { --group-map-accent: #5aafaa; }
  #seiwa-group.groups #chugoku { --group-map-accent: #96b83d; }

  #seiwa-group.groups .group-map__heading {
    --group-map-heading-dark: #68b1dc;
    --group-map-heading-light: #97c5e7;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 44px 0 20px;
    overflow: hidden;
    color: #fff;
    font-size: 1.4rem;
    font-family: inherit;
    font-weight: inherit;
    background: var(--group-map-heading-light);
    cursor: pointer;
  }

  #seiwa-group.groups .group-map__heading::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 38%;
    background: var(--group-map-heading-dark);
    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
    content: "";
  }

  #seiwa-group.groups .group-map__heading::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    margin: 0;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    content: "";
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  #seiwa-group.groups .group-map__heading.active::after {
    transform: translateY(-70%) rotate(135deg);
  }

  #seiwa-group.groups .group-map__heading--osaka {
    --group-map-heading-dark: #6bad7f;
    --group-map-heading-light: #99c094;
  }

  #seiwa-group.groups .group-map__heading--kyoto {
    --group-map-heading-dark: #5aafaa;
    --group-map-heading-light: #8bbebf;
  }

  #seiwa-group.groups .group-map__heading--chugoku {
    --group-map-heading-dark: #96b83d;
    --group-map-heading-light: #aec55d;
  }

  .group-map__heading-ja {
    position: relative;
    z-index: 1;
    transform: translateY(2px);
  }

  .group-map__heading-en {
    position: absolute;
    bottom: 3px;
    left: 38%;
    z-index: 1;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.03em;
  }

  #seiwa-group.groups .group-map__panel > .ls-tab {
    display: none;
    width: 100%;
    margin: 0 0 20px;
  }

  #seiwa-group.groups .group-map__panel > .ls-tab h4 {
    margin: 20px 0 10px;
    color: var(--group-map-accent);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
  }

  #seiwa-group.groups .group-map__panel > .ls-tab > li {
    border-bottom: 2px solid #e9e9e9;
  }

  #seiwa-group.groups .group-map__panel > .ls-tab > li:has(h4) {
    border-bottom: 0;
  }

  #seiwa-group.groups .group-map__panel > .ls-tab > li > a {
    position: relative;
    display: block;
    padding: 10px 10px 10px 25px;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: inherit;
    white-space: nowrap;
  }

  #seiwa-group.groups .group-map__panel > .ls-tab > li > a::before {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 0;
    height: 0;
    margin: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--group-map-accent);
    content: "";
    transform: translateY(-50%);
  }

  .group-map__sdx {
    display: block;
    margin: 0;
  }

  .group-map__sdx a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 44px 0 20px;
    overflow: hidden;
    color: #fff;
    font-size: 1.4rem;
    font-family: inherit;
    font-weight: inherit;
    text-decoration: none;
    background: #465e9e;
  }

  .group-map__sdx a::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 38%;
    background: #0f337f;
    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
    content: "";
  }

  .group-map__sdx a::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    content: "";
    transform: translateY(-50%) rotate(45deg);
  }

  .group-map__sdx-ja {
    position: relative;
    z-index: 1;
    transform: translateY(2px);
  }

  .group-map__sdx-en {
    position: absolute;
    bottom: 3px;
    left: 38%;
    z-index: 1;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.03em;
  }
}
