/* セクション基礎レイアウト */

.area_select-section {
  padding: 48px 0 48px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 809px) {
  .area_select-section {
    padding: 0 0 24px 0;
  }
}

.area-select-ui {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 576px;
  border: var(--color-accent) 1px solid;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--color-ui-bg);
}

#areaMap {
  display: flex;
  width: 730px;
  height: 576px;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

@media (max-width: 1179px) and (min-width: 810px) {
  .area-select-ui {
    height: 590px;
  }

  #areaMap {
    width: 505px;
    height: 442px;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 809px) {
  #areaMap,
  .area-select-ui {
    display: none;
  }
}


/* ===== 地図 ===== */
.jp-map {
  width: 100%;
  height: auto;
  display: block;
}

.jp-map [id^="region-"] * {
  fill: var(--color-ui-sub);
  transition: fill 0.5s ease;
  shape-rendering: crispEdges;
}

.jp-map [id^="region-"].is-active--map * {
  fill: var(--color-accent);
}

#aux-ryukyu-connector {
  pointer-events: none;
}

#aux-ryukyu-connector *,
#aux-ryukyu-connector path {
  fill: var(--color-key);
  vector-effect: non-scaling-stroke;
}

.hit-area {
  fill: transparent !important;
}

.map-wrapper {
  position: relative;
  width: 600px;
  margin: 0 auto;
}

@media (max-width: 1179px) and (min-width: 810px) {
  .map-wrapper {
    position: relative;
    width: 420px;
    margin: 0 auto;
  }
}

.map-label {
  position: absolute;
  background: var(--color-ui-sub);
  color: var(--color-text_dark);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  width: 120px;
  height: 50px;
  padding: 8px 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.map-label.is-active--map {
  background: var(--color-accent);
  color: var(--color-text_light);
  font-weight: 700;
}

.jp-map g.is-active--map * {
  fill: var(--color-map-accent);
}

/* 各地域ラベルの座標 */
.label-tohoku {
  top: 46%;
  left: 87.5%;
  transform: translate(-50%, -50%);
}

.label-kanto {
  top: 78%;
  left: 79.5%;
  transform: translate(-50%, -50%);
}

.label-tokai-koshinetsu {
  top: 45%;
  left: 48%;
  transform: translate(-50%, -50%);
}

.label-kinki {
  top: 95%;
  left: 43%;
  transform: translate(-50%, -50%);
}

.label-kyushu-okinawa {
  top: 64%;
  left: 8%;
  transform: translate(-50%, -50%);
}

@media (max-width: 1179px) and (min-width: 810px) {
  .label-tohoku {
    top: 50%;
    left: 92%;
    transform: translate(-50%, -50%);
  }

  .label-kanto {
    top: 85%;
    left: 82%;
    transform: translate(-50%, -50%);
  }

  .label-tokai-koshinetsu {
    top: 40%;
    left: 47%;
    transform: translate(-50%, -50%);
  }

  .label-kinki {
    top: 96%;
    left: 35%;
    transform: translate(-50%, -50%);
  }

  .label-kyushu-okinawa {
    top: 55%;
    left: 15%;
    transform: translate(-50%, -50%);
  }
}

/* ホテルの一覧表示部分 */
.hotel-list_wrapper {
  width: 100%;
  height: auto;
  border-left: var(--color-accent) 1px solid;
  display: flex;
}

.hotel-list_view {
  display: flex;
  flex-direction: column;
  background-color: var(--color-ui-bg);
  width: 100%;
  transition: opacity 0.4s ease;
  opacity: 1;
}

@media (max-width: 809px) {
  .hotel-list_view {
    display: none;
  }
}

.hotel-list_default_disp {
  display: flex;
  height: 100%;
  font-size: 12px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* エリア名見出し（例：「東海＆甲信越」のホテル一覧） */
.hotel-list__area-name {
  background-color: var(--color-accent);
  color: var(--color-text_light);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border_dark);
}

/* 都道府県名（例：長野県、静岡県） */
.hotel-list__prefecture {
  background-color: #E6E6E6;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: bold;
  padding: 6px 16px;
  border-bottom: 1px solid var(--color-border_dark);
}

/* 各ホテル名 */
.hotel-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border_dark);
  background-color: var(--color-ui-bg);
  transition: background-color 0.5s ease-in-out;
}

.hotel-list__item:hover {
  background-color: var(--color-ui-sub);
}

/* リンクアイコン */
.hotel-list__item a.hotel-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  width: 100%;
  gap: 8px;
  box-sizing: border-box;
  padding: 0 12px;
}

.hotel-list__link span {
  display: inline-block;
  flex-grow: 1;
}

.hotel-list__icon {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-block;
  color: var(--color-accent);
}

/* ===== スマホ切替（PC・タブレット時は非表示） ===== */
.region-accordion {
  display: none;
}

@media (max-width: 809px) {
  .region-accordion {
    display: block;
    background: var(--color-ui-bg);
    border: 1px solid var(--color-accent);
  }
}

/* ===== アコーディオンUI ===== */
.acc__item {
  border-bottom: 1px solid var(--color-key);
}

.acc__item:last-child {
  border-bottom: none;
}

.hotel-list__item:last-child {
  border-bottom: none;
}

.acc__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 12px 16px;
  font-weight: 700;
  background: var(--color-ui-sub);
  transition: background-color 0.5s ease;
}

.acc__summary::-webkit-details-marker {
  display: none;
}

.acc__item[open]>.acc__summary {
  background: var(--color-accent);
  color: var(--color-ui-bg);
}

/* プラス/マイナスアイコン */
.acc__icon .icon-minus {
  display: none;
}

.acc__icon .icon-plus {
  display: inline-block;
}

.acc__item[open] .icon-minus {
  display: inline-block;
}

.acc__item[open] .icon-plus {
  display: none;
}

.icon-plus {
  fill: var(--color-text_dark);
}

.icon-minus {
  fill: var(--color-text_light);
}

.acc__content {
  overflow: hidden;
  height: 0;
  transition: height 0.7s ease;
}

.acc__item[open] .acc__content {
  height: auto;
}