@charset "UTF-8";
/*
 * 地図ページ固有スタイル
 * /search/assets/css/index.css を読み込んだ上での差分のみ記述
 */

/* ===========================
   PAGE LAYOUT (SP: single column)
   =========================== */

#map-page {
  position: relative;
}

#container #title-bar h1 {
  -webkit-animation: none;
  animation: none;
  margin: 0;
  opacity: 1;
}

#container #title-bar::before {
  display: none !important;
}

#map-main {
  position: relative;
}

/* ===========================
   SP RESULT BAR
   =========================== */

#sp-result-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.sp-result-count {
  font-size: 20px;
  color: #333;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.sp-result-count strong {
  color: #e83c3c;
  font-size: 23px;
}

/* SP: 再検索ボタンの上に移動した「市区町村を選ぶ」 */
#sp-result-bar #panel-block-city {
  width: 100%;
  margin-bottom: 0;
}

#btn-open-panel {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  height: 48px;
  background: #fff;
  color: #e83c3c;
  border: 1px solid #e83c3c;
  border-radius: 24px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  line-height: 44px;
}

#btn-open-panel::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 28px;
  height: 28px;
  background: #e83c3c url(../../../general/img/arrow_s_red.png) center/contain no-repeat;
  border-radius: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* ===========================
   GOOGLE MAP
   =========================== */

#map {
  width: 100%;
  height: 490px;
  margin-bottom: 30px;
}

/* ===========================
   STORE LIST
   =========================== */

#store-list {
  padding: 16px;
}

.store-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px dashed #e0e0e0;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.store-item-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
}

.store-item:first-child {
  padding-top: 0;
}

.store-item.is-highlighted {
  background: #fff8f8;
}

.store-num {
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  -ms-flex-item-align: start;
  align-self: flex-start;
  width: 33px;
  height: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='38' viewBox='0 0 33 38' fill='none'%3E%3Cpath d='M3.66699 1.5H29.333C30.5212 1.5 31.5 2.47875 31.5 3.66699V29.333C31.5 30.5212 30.5212 31.5 29.333 31.5H21.3809L20.9414 31.9375L16.7246 36.1357L16.7227 36.1377C16.5934 36.2669 16.388 36.2669 16.2588 36.1377L11.6211 31.5H3.66699C2.47875 31.5 1.5 30.5212 1.5 29.333V3.66699C1.5 2.47386 2.4653 1.5 3.66699 1.5Z' fill='white' stroke='%23EC3E3E' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding-bottom: 7px;
  color: #e83c3c;
  font-size: 17px;
  font-weight: bold;
  font-family: "Lato", Arial, sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 2px;
}

.store-body {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}

.store-name {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.store-name a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-name a:hover {
  text-decoration: underline;
  color: #e83c3c;
}

.store-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.store-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 2px;
  color: #fff;
  white-space: nowrap;
}

.badge-inactive {
  background: #ccc;
}

.badge-robo {
  background: #f39800;
}
.badge-robopro {
  background: #005fa3;
}
.badge-programming {
  background: #ed798e;
}
.badge-science {
  background: #6bc8f2;
}
.badge-art {
  background: #fff100;
  color: #707070;
}

.store-address,
.store-tel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  color: #666;
  margin: 0 0 0.8em;
  line-height: 1.5;
}

.store-label {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.store-value {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}

.no-results {
  text-align: center;
  color: #888;
  font-size: 18px;
  padding: 24px 0;
}

#load-more-wrap {
  text-align: center;
  padding: 16px 0 8px;
}

#btn-load-more {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  background: #f6f6f6;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

@media screen and (min-width: 960px) {
  #btn-load-more {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===========================
   MAP PIN (AdvancedMarkerElement)
   =========================== */

/* .store-num と同一デザイン */
.map-pin {
  width: 33px;
  height: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33' height='38' viewBox='0 0 33 38' fill='none'%3E%3Cpath d='M3.66699 1.5H29.333C30.5212 1.5 31.5 2.47875 31.5 3.66699V29.333C31.5 30.5212 30.5212 31.5 29.333 31.5H21.3809L20.9414 31.9375L16.7246 36.1357L16.7227 36.1377C16.5934 36.2669 16.388 36.2669 16.2588 36.1377L11.6211 31.5H3.66699C2.47875 31.5 1.5 30.5212 1.5 29.333V3.66699C1.5 2.47386 2.4653 1.5 3.66699 1.5Z' fill='white' stroke='%23EC3E3E' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding-bottom: 7px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #e83c3c;
  font-size: 17px;
  font-weight: bold;
  font-family: "Lato", Arial, sans-serif;
  cursor: pointer;
}

/* 選択時: 非選択ピンの減光 */
.map-pin.is-dimmed {
  -webkit-filter: brightness(0.5);
  filter: brightness(0.5);
}

/* 選択時: 地図タイルの減光オーバーレイ */
.map-dim-overlay {
  position: absolute;
  width: 10000px;
  height: 10000px;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}


/* ===========================
   INFOWINDOW
   =========================== */

.gmap-info {
  position: relative;
  padding: 4px 26px 4px 2px;
  max-width: 375px;
}

/* カスタムクローズボタン（headerDisabled: true のため自前で表示） */
.gmap-close {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1.5px solid #999;
  border-radius: 50%;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 45%, #999 45%, #999 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #999 45%, #999 55%, transparent 55%);
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.gmap-close:hover {
  background-color: #f0f0f0;
}

.gmap-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gmap-head .store-num {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-top: 0;
}

.gmap-name {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  color: #333;
}

.gmap-name a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.gmap-name a:hover {
  color: #e83c3c;
}

.gmap-badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.gmap-badge-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.gmap-address,
.gmap-tel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  color: #555;
  margin: 0 0 4px;
  line-height: 1.5;
}

.gmap-label {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.gmap-value {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
}

.gmap-link {
  margin-top: 10px;
}

.gmap-link a {
  display: block;
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
  padding: 8px;
  background: #e83c3c;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 24px;
}

.gmap-link a:hover {
  opacity: 0.85;
}

/* ===========================
   SEARCH PANEL (SP: slide-in from right)
   =========================== */

#search-panel {
  position: fixed;
  top: 58px;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: calc(100% - 58px);
  overflow-y: auto;
  background: #fff;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition:
    transform 0.3s ease,
    -webkit-transform 0.3s ease;
  z-index: 200;
  -webkit-box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
}

#search-panel.is-open {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

#panel-overlay {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  width: 100%;
  height: calc(100% - 58px);
  background: rgba(0, 0, 0, 0.45);
  z-index: 199;
}

#panel-overlay.is-visible {
  display: block;
}

body.panel-open {
  overflow: hidden;
}

#btn-close-panel {
  display: none;
}

body.panel-open #btn-close-panel {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: fixed;
  top: 58px;
  left: 0;
  width: 36px;
  height: 36px;
  background: #e83c3c;
  border: none;
  border-radius: 0;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  z-index: 201;
}

@media screen and (max-width: 425px) {
  #search-panel {
    top: 91px;
    height: calc(100% - 91px);
  }
  #panel-overlay {
    top: 91px;
    height: calc(100% - 91px);
  }
  body.panel-open #btn-close-panel {
    top: 91px;
  }
}

/* ===========================
   PANEL INNER CONTENT
   =========================== */

.panel-inner {
  padding: 20px 16px 32px;
}

.panel-result-count {
  display: none;
  font-size: 23px;
  color: #333;
  margin: 0 0 20px;
  padding: 12px 0;
  line-height: 1.5;
  text-align: center;
}

.panel-result-count strong {
  color: #e83c3c;
  font-size: 26px;
}

.panel-section {
  margin-bottom: 28px;
}

/* ===========================
   SEARCH CATEGORY (panel内 3列グリッドに上書き)
   =========================== */

#search-panel .search-category {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 8px 1fr;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

#search-panel .search-category li {
  width: auto;
  height: 48px;
  border-radius: 6px;
  margin: 0;
}

#search-panel .search-category li label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 4px 0 36px;
  font-size: 16px;
  text-align: left;
  line-height: 1.3;
}

#search-panel .search-category li label span {
  left: 8px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* ===========================
   PREF SELECTED STATE
   =========================== */

.pref-selected,
.city-selected {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff5f5;
  border: 1px solid #e83c3c;
  border-radius: 4px;
}

.pref-selected-name,
.city-selected-name {
  font-size: 20px;
  font-weight: bold;
  color: #e83c3c;
}

#btn-change-pref,
#btn-change-city {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 4px 12px;
  background: #fff;
  color: #e83c3c;
  border: 1px solid #e83c3c;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
}

/* ===========================
   CITY SECTION
   =========================== */

#panel-block-city {
  margin-bottom: 0;
}

#btn-city-toggle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

#btn-city-toggle:disabled {
  color: #bbb;
  cursor: not-allowed;
}

#btn-city-toggle .toggle-icon {
  font-size: 23px;
  color: #e83c3c;
}

#btn-city-toggle:disabled .toggle-icon {
  color: #ccc;
}

#city-list {
  display: none;
  list-style: none;
  padding: 8px 0;
  margin: 4px 0 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 240px;
  overflow-y: auto;
}

#city-list.is-open {
  display: block;
}

.city-item {
  border-bottom: 1px dashed #eee;
}

.city-item:last-child {
  border-bottom: none;
}

.city-btn {
  display: block;
  padding: 10px 14px;
  font-size: 17px;
  color: #333;
  text-decoration: none;
}

.city-btn.is-active {
  color: #e83c3c;
  font-weight: bold;
  background: #fff5f5;
}

/* ===========================
   PC LAYOUT: @media (min-width: 960px)
   =========================== */

@media screen and (min-width: 960px) {
  /* 2カラムレイアウト */
  #map-page {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
  }

  #sp-result-bar {
    display: none;
  }

  /* サイドバー（PC: 常時表示） */
  #search-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 375px;
    min-width: 375px;
    max-width: 375px;
    overflow-y: auto;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-right: 1px solid #e0e0e0;
    z-index: auto;
  }

  #search-panel[aria-hidden="true"] {
    -webkit-transform: none;
    transform: none;
    display: block;
  }

  #panel-overlay {
    display: none !important;
  }

  #map-main {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
  }

  #map {
    height: 500px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    margin-bottom: 0;
  }

  #store-list {
    padding: 24px;
  }

  .store-item {
    padding: 20px 0;
  }

  .store-name {
    font-size: 21px;
  }

  .store-badge {
    font-size: 16px;
    height: 28px;
  }

  .store-address,
  .store-tel {
    font-size: 18px;
  }

  .panel-inner {
    padding: 16px 16px 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  /* PC: 都道府県（+市区町村）を場所・教室名より前に */
  .panel-result-count {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }

  #panel-block-course {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
  }

  #panel-block-pref {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
  }

  #panel-block-city {
    -webkit-box-ordinal-group: 5;
    -ms-flex-order: 4;
    order: 4;
    margin-bottom: 40px;
  }

  #panel-block-search {
    -webkit-box-ordinal-group: 6;
    -ms-flex-order: 5;
    order: 5;
    margin-bottom: 0;
  }

  .panel-result-count {
    display: block;
  }

  /* -----------------------------------------------
     トップページPC上書きをサイドバー用に打ち消す
     ----------------------------------------------- */

  /* フォーム: 縦並びを維持 */
  .search-form {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .online-link {
    margin-bottom: 40px;
  }

  .panel-section {
    margin-bottom: 40px;
  }

  #input_freeword {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    width: 100%;
    height: 44px;
    font-size: 18px;
  }

  #btn-search {
    width: 100%;
    height: 44px;
    font-size: 20px;
  }

  #btn-reset {
    width: 100%;
  }

  /* 講座選択: PC時は3カラム */
  #search-panel .search-category {
    -ms-grid-columns: 1fr 8px 1fr 8px 1fr;
    grid-template-columns: repeat(3, 1fr);
  }

  /* チェックアイコン: PC時は少し小さめに */
  #search-panel .search-category li label span {
    width: 20px;
    height: 20px;
    background-size: 20px;
    left: 8px;
  }

  /* 都道府県: PC時もアコーディオンを維持 */
  #search-panel #pref-grid {
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
  }

  #search-panel .pref-region {
    border-top: 1px solid #ddd;
  }

  #search-panel .pref-region:first-child {
    border-top: none;
  }

  #search-panel .region-title {
    cursor: pointer;
    padding: 14px 52px 14px 16px;
    border-bottom: none;
    margin-bottom: 0;
  }

  #search-panel .region-title::before {
    display: block;
  }

  #search-panel .pref-region.is-open > .region-title {
    border-bottom: 1px solid #ddd;
  }

  #search-panel .pref-list {
    display: none;
    -ms-flex-wrap: unset;
    flex-wrap: unset;
    padding: 0;
    gap: 0;
  }

  #search-panel .pref-region.is-open > .pref-list {
    display: block;
  }

  #search-panel .pref-item {
    border-bottom: 1px dashed #ccc;
  }

  #search-panel .pref-btn {
    width: 100%;
    padding: 14px 56px 14px 16px;
    border: none;
  }

  /* PC: アコーディオン内の市区町村はSP専用のため非表示 */
  #search-panel .city-acc-btn,
  #search-panel .city-drop {
    display: none;
  }

  #search-panel .pref-btn-row .pref-btn {
    padding-right: 56px;
  }

  #search-panel .pref-btn-row .pref-btn::after {
    right: 0;
  }
}

/* ===========================
   LARGE PC: @media (min-width: 1280px)
   =========================== */

@media screen and (min-width: 1280px) {
  #search-panel {
    width: 375px;
    min-width: 375px;
    max-width: 375px;
  }

  #map {
    height: 560px;
  }
}
