/* =========================================
   newmap.css - 教室検索ページ
   ========================================= */

/* --- リセット・ベース --- */
.newmap * {
  box-sizing: border-box;
}

.newmap {
  font-family: "Noto Sans JP", Helvetica, Arial, Verdana, Roboto, "游ゴシック", "Yu Gothic",
    "游ゴシック体", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
    "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  max-width: 100%;
  padding-bottom: 40px;
}

.newmap#newmap {
  max-width: 1000px;
  margin: auto;
}

.wrap_inner.newmap__wrapper {
  width: 100%;
}

#wrap #breadcrumb {
  max-width: 1000px;
}

#wrap {
  @media (max-width: 750px) {
    padding-top: 22px;
  }
  @media (min-width: 751px) {
    margin-top: 160px;
  }
}

/* --- ページタイトル --- */
.newmap__title {
  background: #f0f0f0;
  padding: 14px 20px;
  margin: 0 0 0;
  font-size: 20px;
  font-weight: bold;
  border-left: 5px solid #0097e0;
  line-height: 1.4;
}

@media (min-width: 751px) {
  .newmap__title {
    font-size: 22px;
    padding: 16px 24px;
    margin: auto;
    max-width: 1000px;
  }
}

.newmap__top {
  background-color: #FBFDE5;
  border-bottom: solid 4px #0086D1;
}

.newmap__main {
  max-width: 1000px;
  margin: auto;
  @media (min-width: 751px) {
    padding: 0 40px;
  }
}

/* --- フリーワード検索エリア --- */
.newmap__search-area {
  background: #FBFDE5;
  padding: 16px 16px 12px;
  margin-top: 5px;
}

@media (min-width: 751px) {
  .newmap__search-area {
    padding: 20px 40px 16px;
  }
}

.newmap__search-label {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #333;
}

@media (min-width: 751px) {
  .newmap__search-label {
    font-size: 17px;
    max-width: 1000px;
    margin: 8px auto;
  }
}

.newmap__search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1000px;
  margin: auto;
}

.newmap__search-input {
  flex: 1;
  height: 47px;
  border: 1px solid #747474;
  border-right: none;
  border-radius: 7px 0 0 7px;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: #333;
  -webkit-appearance: none;
  appearance: none;
}

.newmap__search-input::placeholder {
  color: #999;
  font-size: 13px;
}

@media (min-width: 751px) {
  .newmap__search-input {
    height: 52px;
    font-size: 16px;
  }
  .newmap__search-input::placeholder {
    font-size: 14px;
  }
}

.newmap__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #0086D1;
  color: #fff;
  border: 2px solid #0086D1;
  border-radius: 0 7px 7px 0;
  padding: 0 18px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  position: relative;
}

.newmap__search-btn:hover {
  background: #007bbf;
  border-color: #007bbf;
}

.newmap__search-btn::after {
  content: "";
  background-image: url("https://std-ie.jp/img/common/icon_arrow_white.svg");
  background-size: cover;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 6px;
  height: 12px;
}

@media (max-width: 750px) {
  .newmap__search-btn::after {
    right: 7px;
    width: 5px;
    height: 10px;
  }
}

@media (min-width: 751px) {
  .newmap__search-btn {
    padding: 0 45px;
    font-size: 16px;
  }
}

/* オンライン個別指導リンク */
.newmap__online-link-wrap {
  text-align: right;
  padding: 6px 16px 0;
  background: #FBFDE5;
}

a:link#newmap__online-link.newmap__online-link {
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  text-decoration: underline;
}

.newmap__online-link:hover {
  text-decoration: none;
}

@media (min-width: 751px) {
  .newmap__online-link-wrap {
    padding: 0 40px;
    max-width: 1000px;
    margin: auto;
  }
  .newmap__online-link {
    font-size: 14px;
  }
}

/* --- タブ切替 --- */
.newmap__tabs {
  display: flex;
  gap: 16px;
  padding: 0 16px 0;
  background: #FBFDE5;
  padding-bottom: 0;
  padding-top: 12px;
}

@media (min-width: 751px) {
  .newmap__tabs {
    padding: 28px 40px 0;
    gap: 24px;
    max-width: 1000px;
    margin: auto;
  }
}

.newmap__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
  padding: 0 8px;
}

@media (min-width: 751px) {
  .newmap__tab {
    height: 52px;
    font-size: 17px;
    border-radius: 5px;
  }
}

.newmap__tab--area {
  background: #0086D1;
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.newmap__tab--area.is-active {
  background: #0086D1;
  color: #fff;
}

.newmap__tab--area:not(.is-active) {
  background: #DDDDDD;
  color: #888;
}

.newmap__tab--location {
  background: #DDDDDD;
  color: #888;
  border-radius: 10px 10px 0 0;
}

.newmap__tab--location.is-active {
  background: #0086D1;
  color: #fff;
}

.newmap__tab--location:not(.is-active) {
  background: #DDDDDD;
  color: #888;
}

@media (min-width: 751px) {
  .newmap__tab--area {
    border-radius: 10px 10px 0 0;
  }
  .newmap__tab--location {
    border-radius: 10px 10px 0 0;
  }
}

.newmap__tab-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

@media (min-width: 751px) {
  .newmap__tab-icon {
    width: 22px;
    height: 22px;
  }
}

/* タブアイコン SVG */
.newmap__tab-icon--chevron {
  display: inline-flex;
  align-items: center;
}

.newmap__tab .newmap__tab-icon--chevron::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-image: url("https://std-ie.jp/img/common/icon_arrow_gray.svg");
  background-size: 25px 25px;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
}

.newmap__tab.is-active .newmap__tab-icon--chevron::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-image: url("https://std-ie.jp/img/common/icon_arrow_blue.svg");
  background-size: 25px 25px;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
}

@media (max-width: 750px) {
  .newmap__tab .newmap__tab-icon--chevron::after,
  .newmap__tab.is-active .newmap__tab-icon--chevron::after {
    background-size: 14px 14px;
    right: 16px;
    width: 14px;
    height: 14px;
  }
}



/* --- フリーワード検索結果見出し --- */
.newmap__freeword-heading {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 16px 8px;
  color: #333;
}

@media (min-width: 751px) {
  .newmap__freeword-heading {
    font-size: 20px;
    padding: 24px 24px 12px;
  }
}

/* --- 絞り込みプルダウン --- */
.newmap__filter-area {
  padding: 20px 16px 0;
}

@media (min-width: 751px) {
  .newmap__filter-area {
    padding: 36px 0 0;
  }
}

.newmap__filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 25px;
  @media (max-width: 750px) {
    flex-direction: column;
  }
}

.newmap__filter-select-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 220px;
  @media (max-width: 750px) {
    max-width: none;
  }
}

.newmap__filter-label {
  position: absolute;
  top: 0px;
  left: 11px;
  translate: 0 -50%;
  background: white;
  padding: 0 5px;
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.newmap__filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #747474;
  border-radius: 8px;
  padding: 10px 40px 10px 14px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  width: 100%;
  outline: none;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.2s;
}

.newmap__filter-select:focus {
  border-color: #0097e0;
}

.newmap__filter-select-wrap::after {
  content: "";
  position: absolute;
  background-image: url("https://std-ie.jp/img/common/icon_arrow_333333.svg");
  background-size: cover;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  /* transform: rotate(45deg); */
  width: 11px;
  height: 5.8px;
  /* border-right: 2px solid #999;
  border-bottom: 2px solid #999; */
  pointer-events: none;
}

@media (min-width: 751px) {
  .newmap__filter-select {
    font-size: 15px;
  }

  .newmap__filter-select-wrap {
    max-width: 300px;
  }
}


/* --- マップエリア --- */
.newmap__map-container {
  display: none;
  padding: 0;
}

.newmap__map-container.is-visible {
  display: block;
}

.newmap__map {
  width: 100%;
  height: 300px;
  background: #e0e0e0;
}

@media (min-width: 751px) {
  .newmap__map-and-list {
    display: flex;
    gap: 30px;
    margin-top: 36px;
  }

  .newmap__map-col {
    flex: 1;
    min-width: 0;
  }

  .newmap__list-col {
    flex: 1;
    min-width: 0;
    max-height: 400px;
    overflow-y: auto;
  }

  .newmap__map {
    height: 400px;
  }
}

/* --- 教室一覧 --- */
.newmap__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.newmap__list-item {
  border-bottom: 1px solid #e0e0e0;
}

.newmap__list-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.newmap__list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.newmap__list-link:hover {
  background: #f8f8f8;
}

@media (min-width: 751px) {
  .newmap__list-link {
    padding: 14px 24px 14px 0;
  }
}

.newmap__list-info {
  flex: 1;
  min-width: 0;
}

.newmap__list-name {
  font-size: 17px;
  font-weight: bold;
  color: #0097e0;
  margin: 0 0 4px;
  line-height: 1.3;
}

@media (min-width: 751px) {
  .newmap__list-name {
    font-size: 16px;
  }
}

.newmap__list-address {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 751px) {
  .newmap__list-address {
    font-size: 13px;
  }
}

.newmap__list-arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  transform: rotate(-45deg);
  margin-left: 12px;
}

/* --- 検索結果なし --- */
.newmap__no-result {
  text-align: center;
  padding: 40px 16px;
  color: #888;
  font-size: 15px;
}

/* --- TOPに戻るリンク --- */
.newmap__back-top {
  text-align: center;
  padding: 24px 16px 0;
}

.newmap__back-top a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}

.newmap__back-top a:hover {
  text-decoration: underline;
}

/* --- ローディング --- */
.newmap__loading {
  display: none;
  text-align: center;
  padding: 40px 16px;
  color: #888;
  font-size: 14px;
}

.newmap__loading.is-visible {
  display: block;
}

.newmap__loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: #0097e0;
  border-radius: 50%;
  animation: newmap-spin 0.7s linear infinite;
  margin-bottom: 8px;
}

@keyframes newmap-spin {
  to { transform: rotate(360deg); }
}

/* --- ユーティリティ --- */
.newmap__hidden {
  display: none !important;
}
