/* =========================================================
   wise-inc / 事業所案内専用スタイルシート (pages/offices.css)
   ・探す枠（キーワード検索・エリア絞り込み）
   ・事業所一覧グリッド / カード
   ・日本列島マップ（SVG点描・光線アニメーション・拠点ピン）
   ・都道府県リスト / 絞り込みチップ
   ========================================================= */

main.page {
  padding-block: clamp(40px, 6vh, 72px) clamp(60px, 9vh, 110px);
}

/* --- 探す枠：1行に収める --- */
.finder {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s ease;
}
.finder:focus-within {
  border-bottom-color: var(--blue);
}

.srch {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: clamp(40px, 3.4vw, 46px);
}
.srch > svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--faint);
  transition: color .3s ease;
}
.srch:focus-within > svg {
  color: var(--blue);
}
.srch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: clamp(14px, 1.15vw, 16px);
  letter-spacing: .04em;
  color: var(--ink);
}
.srch input::placeholder {
  color: #A7B1C0;
}
.srch input::-webkit-search-cancel-button {
  display: none;
}
.srch__clear {
  display: none;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #E6EBF2;
  color: var(--sub);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.srch__clear.is-on {
  display: grid;
}
.srch__clear:hover {
  background: var(--navy);
  color: #fff;
}
.srch__clear svg {
  width: 11px;
  height: 11px;
}

/* エリア：隠さずに全部出す。押せるので丸い枠を持つ */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: none;
}
.area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 33px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: clamp(12px, .95vw, 13.5px);
  letter-spacing: .04em;
  color: var(--sub);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .28s ease, color .28s ease, background-color .28s ease;
}
.area b {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  transition: color .28s ease;
}
.area:hover {
  border-color: #C6D3E4;
  color: var(--strong);
  background: #F7FAFE;
}
.area[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.area[aria-pressed="true"] b {
  color: var(--gold);
}

@media (max-width: 860px) {
  .finder {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .srch {
    flex: 1 1 100%;
  }
  .areas {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .areas::-webkit-scrollbar {
    display: none;
  }
  .area {
    flex: none;
  }
}

/* 件数と、結果なしの知らせ */
.count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: clamp(18px, 2.4vw, 28px) 0 clamp(14px, 1.8vw, 20px);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--sub);
}
.count b {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: .04em;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.count em {
  font-style: normal;
  color: var(--faint);
}
.empty[hidden], .ofs[hidden], .of[hidden] {
  display: none;
}
.empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed #C6D0DE;
  border-radius: 4px;
  background: var(--bg2);
}
.empty p {
  margin: 0;
  font-size: clamp(13.5px, 1.05vw, 15px);
  color: var(--sub);
}
.empty b {
  font-size: clamp(14.5px, 1.2vw, 17px);
  font-weight: 500;
  color: var(--strong);
  letter-spacing: .06em;
}

/* --- 一覧 --- */
.ofs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.of {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  scroll-margin-top: calc(var(--headSpace) + 28px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.of:hover {
  border-color: #C6D3E4;
  box-shadow: 0 10px 28px rgba(12, 27, 49, .07);
}
.of.is-hit {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .14);
}
.of__area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(10px, 1.3vw, 14px);
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--faint);
}
.of__area i {
  width: 5px;
  height: 5px;
  background: var(--blue);
  flex: none;
}
.of__area span {
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: .08em;
}
.of__name {
  margin: 0 0 clamp(12px, 1.6vw, 16px);
  padding-bottom: clamp(12px, 1.5vw, 16px);
  border-bottom: 1px solid var(--hair);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .07em;
  color: var(--strong);
}
.of address {
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  font-style: normal;
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.95;
  color: var(--sub);
}
.of__nums {
  margin: 0 0 clamp(16px, 2vw, 22px);
  display: grid;
  gap: 6px;
}
.of__nums > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.of__nums dt {
  flex: none;
  width: 2.4em;
  font-family: "Barlow", sans-serif;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--faint);
}
.of__nums dd {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--strong);
}
.of__nums dd.is-fax {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--sub);
}
.of__nums a {
  text-decoration: none;
  transition: color .28s ease;
}
.of__nums a:hover {
  color: var(--blue);
}
.of__acts {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1100px) {
  .ofs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .ofs {
    grid-template-columns: minmax(0, 1fr);
  }
  .areas {
    margin-inline: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .areas::-webkit-scrollbar {
    display: none;
  }
  .area {
    flex: none;
  }
}

/* 絞り込みで現れるときだけ、軽く持ち上げる */
@keyframes of-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ofs.is-filtered .of {
  animation: of-in .45s var(--ease) both;
}
@media (prefers-reduced-motion: __disabled__) {
  .ofs.is-filtered .of {
    animation: none;
  }
}

/* =========================================================
   地図からさがす
   トップページの日本列島（点描）をそのまま下層にも持ち込む。
   ただしここは演出ではなく操作なので、
   ・点（ピン）は都道府県ごとに1つだけ置き、件数を中に出す
   ・キーボードと読み上げのための本体は右の一覧。地図はその補助
   ========================================================= */
.mapp {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(24px, 3.2vw, 40px);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(105deg, #061628 0%, #103466 52%, #1E58AA 100%);
}
.mapp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 16, 32, .34) 0%, rgba(4, 16, 32, .10) 46%, rgba(4, 16, 32, 0) 68%);
}
.mapp__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(240px, 30vw, 400px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 52px);
}

/* --- 左：日本列島 --- */
.mapp__map {
  position: relative;
}
.mapp__map svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.lc-dots {
  opacity: 0;
  transition: opacity 1.4s ease .15s;
}
.lc-dots circle {
  fill: #fff;
  opacity: .2;
}
.mapp.is-in .lc-dots {
  opacity: 1;
}

.lc-arc {
  fill: none;
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s cubic-bezier(.16, 1, .3, 1) var(--d, .4s);
}
.mapp.is-in .lc-arc {
  stroke-dashoffset: 0;
}
.lc-beam {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 22 100;
  stroke-dashoffset: 122;
  opacity: 0;
}
.mapp.is-in .lc-beam {
  animation: lc-beam 3.2s cubic-bezier(.35, 0, .25, 1) var(--d, 1.2s) infinite;
}
@keyframes lc-beam {
  0% {
    stroke-dashoffset: 122;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -22;
    opacity: 0;
  }
}

.lc-site {
  cursor: pointer;
}
.lc-hit {
  fill: transparent; /* 押しやすさのためだけの透明な円 */
}
.lc-halo {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform: scale(.4);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity .5s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}
.lc-pt {
  fill: rgba(255, 255, 255, .72);
  transform: scale(.85);
  transform-origin: center;
  transform-box: fill-box;
  transition: fill .4s ease, transform .5s cubic-bezier(.2, 1.4, .35, 1);
}
.lc-lead {
  fill: none;
  stroke: rgba(255, 255, 255, .4);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke .4s ease;
}
.lc-tag {
  font-family: "Barlow", "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 10.5px;
  letter-spacing: .1em;
  fill: rgba(255, 255, 255, .72);
  opacity: 0;
  transition: fill .4s ease, opacity .6s ease var(--d, .5s);
}
.mapp.is-in .lc-tag {
  opacity: 1;
}
.lc-tag__ja {
  font-size: 11.5px;
  letter-spacing: .06em;
}

.lc-site:hover .lc-pt,
.lc-site.is-hover .lc-pt {
  fill: #fff;
  transform: scale(1.1);
}
.lc-site:hover .lc-tag,
.lc-site.is-hover .lc-tag {
  fill: #fff;
}
.lc-site:hover .lc-lead,
.lc-site.is-hover .lc-lead {
  stroke: rgba(255, 255, 255, .75);
}
.lc-site.is-active .lc-halo {
  opacity: .7;
  transform: none;
}
.lc-site.is-active .lc-pt {
  fill: var(--gold);
  transform: scale(1.15);
}
.lc-site.is-active .lc-tag {
  fill: var(--gold);
}
.lc-site.is-active .lc-lead {
  stroke: rgba(255, 253, 148, .7);
}

/* --- 右：都道府県の一覧（こちらが操作の本体） --- */
.mapp__side {
  min-width: 0;
}
.mapp__cap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  font-family: "Barlow", sans-serif;
  font-size: 10.5px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .55);
}
.mapp__cap i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  flex: none;
}
.prefs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(10px, 1.4vw, 18px);
}
.pref {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding-inline: 18px 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(13px, 1.05vw, 14.5px);
  letter-spacing: .06em;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.pref span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}
.pref b {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.pref::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  flex: none;
  transition: transform .3s var(--ease);
}
.pref:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 253, 148, .1);
}
.pref:hover b {
  color: var(--gold);
}
.pref:hover::after {
  transform: translateX(3px);
}
.pref[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.pref[aria-pressed="true"] b {
  color: rgba(9, 30, 58, .6);
}
.mapp__note {
  margin: clamp(16px, 2vw, 22px) 0 0;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 900px) {
  .mapp__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 5vw, 30px);
  }
  .mapp__map {
    width: min(300px, 64vw);
    margin-inline: auto;
  }
  .lc-tag__en {
    display: none;
  }
  .lc-tag__ja {
    font-size: 16px;
    letter-spacing: .04em;
  }
}
@media (max-width: 560px) {
  .prefs {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: __disabled__) {
  .lc-dots, .lc-arc, .lc-halo, .lc-pt, .lc-tag {
    transition: none !important;
    opacity: 1;
  }
  .mapp.is-in .lc-beam {
    animation: none;
    opacity: 0;
  }
  .mapp.is-in .lc-arc {
    stroke-dashoffset: 0;
  }
}

/* 絞り込み中の知らせ（地図・エリア・語のどれで絞っても同じ場所に出る） */
.chip[hidden] {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding-inline: 14px 10px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #F2F7FE;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .05em;
}
.chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 128, 237, .14);
  color: inherit;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.chip button:hover {
  background: var(--blue);
  color: #fff;
}
.chip svg {
  width: 10px;
  height: 10px;
}

/* 押せるものだけが丸い枠と点を持つ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding-inline: 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(11.5px, .95vw, 13px);
  letter-spacing: .05em;
  color: var(--sub);
  transition: border-color .28s ease, color .28s ease, background-color .28s ease;
}
.pill::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
  transition: transform .28s var(--ease);
}
.pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #F2F7FE;
}
.pill:hover::after {
  transform: translateX(2px);
}
