@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=east");
/* ==============================================================================
   採用サイト用 拠点マップ

   このファイルはサイト本体のCSSへ依存しない独立部品です。
   map/ フォルダを別サイトへコピーして使用できます。

   【主な調整箇所】
   - エリア名の位置       : .nsc-map__region--*
   - エリア名の文字サイズ : .nsc-map__region-heading / __region-meta
   - モーダルの余白       : .nsc-map__modal-*
   - モーダル地図の余白   : JS内 REGION_FIT_PADDING_RATIO
   - ピンの登場演出         : JS内 PIN_REVEAL_* / .nsc-map__pin-image
=============================================================================== */
.nsc-map {
  --nsc-map-bg: #f4f4f4;
  --nsc-map-text: #111;
  --nsc-map-accent: #f00;
  --nsc-map-border: rgba(118, 110, 110, 0.3);
  position: relative;
  width: 100%;
  color: var(--nsc-map-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

.nsc-map *,
.nsc-map *::before,
.nsc-map *::after {
  box-sizing: border-box;
}

.nsc-map__overview {
  position: relative;
  width: 100%;
  aspect-ratio: 1040/581;
  overflow: hidden;
  background: var(--nsc-map-bg);
  border-radius: 16px;
}

.nsc-map__graphic {
  position: absolute;
  top: 3.5%;
  left: 22%;
  width: 56%;
  height: 83%;
}

.nsc-map__loading {
  position: absolute;
  inset: 50% auto auto 50%;
  margin: 0;
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.nsc-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nsc-map__svg [data-map-region] {
  cursor: pointer;
  pointer-events: visiblePainted;
  transition: filter 0.25s ease;
}

.nsc-map__svg [data-map-region].is-hovered {
  filter: brightness(0.9) saturate(1.12);
}

.nsc-map__svg .nsc-map__region-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
}

.nsc-map__region {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  max-width: 250px;
  padding: 0;
  color: var(--nsc-map-text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nsc-map__region:focus-visible,
.nsc-map__region.is-hovered {
  color: var(--nsc-map-region-color);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .nsc-map__region:hover {
    color: var(--nsc-map-region-color);
    outline: none;
  }
}
.nsc-map__region-heading {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: clamp(18px, 1.75vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.nsc-map__swatch {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.5em;
  background: var(--nsc-map-region-color);
}

.nsc-map__region-meta {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

/* 最新マップデザインを基準にしたPC位置 */
.nsc-map__region--hokkaido-tohoku {
  top: 23.5%;
  left: 75%;
}

.nsc-map__region--hokuriku {
  top: 27.5%;
  left: 38.2%;
}

.nsc-map__region--kanto {
  top: 49%;
  left: 73%;
}

.nsc-map__region--chubu {
  top: 78%;
  left: 66%;
}

.nsc-map__region--kinki {
  top: 78%;
  left: 44.5%;
}

.nsc-map__region--chugoku-shikoku {
  top: 36.5%;
  left: 16.1%;
}

.nsc-map__region--kyushu {
  top: 66.5%;
  left: 4%;
}

/* ==============================================================================
   モーダル

   モーダルの開閉・背景・フォーカス管理はFancyboxへ任せます。
   map/側では中身のレイアウトだけを管理し、Fancybox本体は設置先サイトで読み込みます。
=============================================================================== */
.nsc-map__modal {
  /* Fancybox内へ移動しても、マップ本体の親要素に依存せず見た目を維持します。 */
  --nsc-map-bg: #f4f4f4;
  --nsc-map-text: #111;
  --nsc-map-accent: #f00;
  --nsc-map-border: rgba(118, 110, 110, 0.3);
  display: none;
  width: min(100%, 1120px);
  color: var(--nsc-map-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

.nsc-map__modal *,
.nsc-map__modal *::before,
.nsc-map__modal *::after {
  box-sizing: border-box;
}

.nsc-map__modal[hidden] {
  display: none;
}

/* Fancybox内へ移動したときだけ表示し、標準の余白・背景をマップ用に上書きします。 */
.nsc-map-fancybox {
  --f-transition-duration: 0.35s;
  --f-interface-enter-duration: 0.35s;
  --f-interface-exit-duration: 0.35s;
}

.nsc-map-fancybox .fancybox__slide.has-html {
  padding: 25px;
}

.nsc-map-fancybox .nsc-map__modal.f-html {
  display: block;
  width: min(100%, 1120px);
  height: auto;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.nsc-map__modal-window {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 50px);
  max-height: calc(100dvh - 50px);
  overflow-y: auto;
  background: var(--nsc-map-bg);
  border-radius: 16px;
}

.nsc-map__modal-close {
  position: absolute;
  z-index: 10;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nsc-map__modal-close span {
  position: absolute;
  top: 19px;
  left: 10px;
  width: 20px;
  height: 1px;
  background: #766e6e;
}

.nsc-map__modal-close span:first-child {
  transform: rotate(45deg);
}

.nsc-map__modal-close span:last-child {
  transform: rotate(-45deg);
}

.nsc-map__modal-layout {
  display: grid;
  grid-template-areas: "map" "panel";
}

.nsc-map__modal-map-wrap {
  grid-area: map;
  min-height: 320px;
  overflow: hidden;
}

.nsc-map__modal-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--nsc-map-bg);
}

.nsc-map__modal-map .nsc-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nsc-map__modal-map [data-map-region] {
  cursor: default;
  pointer-events: none;
  opacity: 0.1;
}

.nsc-map__modal-map [data-map-region].is-active {
  opacity: 1;
}

.nsc-map__modal-panel {
  grid-area: panel;
  padding: 32px;
  background: var(--nsc-map-bg);
}

.nsc-map__modal-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.5;
}

.nsc-map__modal-swatch {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: var(--nsc-map-active-color);
}

.nsc-map__location-group + .nsc-map__location-group {
  margin-top: 32px;
}

.nsc-map__location-group h3 {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.4;
}

.nsc-map__location-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.nsc-map__location-button {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px 12px 24px;
  color: var(--nsc-map-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  background: transparent;
  border: 1px solid var(--nsc-map-border);
  border-radius: 2px;
  cursor: pointer;
}

.nsc-map__location-button:hover,
.nsc-map__location-button:focus-visible {
  color: var(--nsc-map-accent);
  border-color: var(--nsc-map-accent);
  outline: none;
}

.nsc-map__east {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--nsc-map-accent);
  font-family: "Material Symbols Rounded";
  font-size: 28px;
  font-style: normal;
  font-weight: 200;
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* ==============================================================================
   モーダル内の拠点ピン

   モーダル表示時は、地図のフィット後に各ピンが少し上から順番に現れます。
   拠点詳細を表示している間も他ピンは消さず、薄く残して位置関係を保ちます。
=============================================================================== */
.nsc-map__pin {
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
  -webkit-tap-highlight-color: transparent;
}

.nsc-map__pin:focus,
.nsc-map__pin:focus-visible {
  outline: none;
}

.nsc-map__pin-hit {
  fill: transparent;
  pointer-events: all;
}

.nsc-map__pin-image {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.45s ease var(--nsc-map-pin-delay, 100ms), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) var(--nsc-map-pin-delay, 100ms);
}

.nsc-map__pin.is-visible .nsc-map__pin-image {
  opacity: 1;
  transform: translateY(0);
}

.nsc-map__pin.is-visible:hover .nsc-map__pin-image,
.nsc-map__pin.is-visible:focus-visible .nsc-map__pin-image {
  opacity: 0.7;
}

.nsc-map__pin.is-visible.is-dimmed .nsc-map__pin-image {
  opacity: 0;
}

.nsc-map__pin.is-visible.is-dimmed:hover .nsc-map__pin-image,
.nsc-map__pin.is-visible.is-dimmed:focus-visible .nsc-map__pin-image {
  opacity: 0.6;
}

.nsc-map__pin.is-visible.is-selected .nsc-map__pin-image {
  opacity: 1;
}

.nsc-map__detail-card {
  padding: 32px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
}

.nsc-map__detail-label {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.nsc-map__detail-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.5;
}

.nsc-map__detail-address {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.nsc-map__detail-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nsc-map__detail-link:hover,
.nsc-map__detail-link:focus-visible {
  color: var(--nsc-map-accent);
  outline: none;
}

.nsc-map__detail-back {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  padding: 12px 0;
  color: var(--nsc-map-text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nsc-map__detail-back-arrow {
  color: var(--nsc-map-accent);
  font-size: 24px;
  font-weight: 400;
}

@media screen and (max-width: 1023px) {
  .nsc-map__overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    aspect-ratio: auto;
    padding: 32px 25px;
  }
  .nsc-map__graphic {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1/-1;
    width: 100%;
    height: auto;
    aspect-ratio: 620/455;
  }
  .nsc-map__region {
    position: static;
    max-width: none;
  }
  .nsc-map__region-heading {
    font-size: 16px;
    white-space: normal;
  }
  .nsc-map__region-meta {
    font-size: 12px;
  }
}
@media screen and (max-width: 767px) {
  /*
   * FigmaのSPデザインに合わせ、マップのグレー背景だけを画面端まで広げます。
   * 地図・エリア情報の内側余白は .nsc-map__overview の padding で維持します。
   */
  .nsc-map__overview {
    width: calc(100% + 50px);
    margin-inline: -25px;
    border-radius: 0;
  }
  .nsc-map__graphic {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }
  /* SPではデザイン指定の2カラム順に並べます。 */
  .nsc-map__region--hokkaido-tohoku {
    order: 1;
  }
  .nsc-map__region--kinki {
    order: 2;
  }
  .nsc-map__region--kanto {
    order: 3;
  }
  .nsc-map__region--chubu {
    order: 4;
  }
  .nsc-map__region--hokuriku {
    order: 5;
  }
  .nsc-map__region--chugoku-shikoku {
    order: 6;
  }
  .nsc-map__region--kyushu {
    order: 7;
  }
  .nsc-map__location-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .nsc-map__overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    padding: 40px;
  }
  .nsc-map__graphic {
    width: min(72%, 620px);
    margin-inline: auto;
  }
  .nsc-map__region-heading {
    font-size: 18px;
  }
  .nsc-map__region-meta {
    font-size: 13px;
  }
}
@media screen and (min-width: 1024px) {
  .nsc-map-fancybox .fancybox__slide.has-html {
    padding: 70px 25px;
  }
  .nsc-map__modal-window {
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow: hidden;
  }
  .nsc-map__modal-layout {
    grid-template-areas: "panel map";
    grid-template-columns: 48% 52%;
    height: var(--nsc-map-modal-height, 581px);
    min-height: 0;
  }
  .nsc-map__modal-map-wrap,
  .nsc-map__modal-map,
  .nsc-map__modal-panel {
    height: var(--nsc-map-modal-height, 581px);
    min-height: 0;
  }
  .nsc-map__modal-panel {
    padding: clamp(40px, 4vw, 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nsc-map-fancybox {
    --f-transition-duration: 0s;
    --f-interface-enter-duration: 0s;
    --f-interface-exit-duration: 0s;
  }
  .nsc-map__svg [data-map-region],
  .nsc-map__pin-image {
    transition: none;
  }
}