@charset "UTF-8";

/* =====================
*
下部のロゴや住所や天気の情報
*
=====================*/
/* ベース（デスクトップ）*/
.location-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8em;
  padding: 10px 10px;
  /* PCではこの領域の背景を白にする。天気アイコンとの整合性のため */
  background: var(--bg-color);
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 44px;
}

/* 住所グループ */
.address-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-right: 20px;
  height: 20px;
}

/* 住所情報 */
.address-info {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  height: 20px;
}

.address {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 20px;
}

/* アイコンサイズの統一 */
.location-info i {
  flex-shrink: 0;
  margin-right: 5px;
  font-size: 14px;
  width: 24px;
  height: 24px;
  text-align: center;
}

/* 最寄り駅情報 */
.nearest-stations {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 2;
  overflow: hidden;
  height: 20px;
}

/* アイコンと駅名をグループ化するようなスタイル */
.nearest-stations i,
.nearest-stations .station {
  display: inline-flex;
  align-items: center;
}

/* テキストスタイルの統一 */
.address,
.station,
#elevation-value {
  font-size: 12px;
  line-height: 1.2;
}

#elevation-unit {
  font-size: 10px;
  line-height: 1.2;
}

/* 地図上のロゴスタイル */
#map-logo {
  padding: 0;
  margin-right: 15px;
}

#map-logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* ---------------------
天気
---------------------*/
.weather-info {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  overflow: hidden;
  font-weight: normal;
  flex-grow: 1;
  min-width: 0;
}

#weather-unit {
  font-size: 10px;
  flex-shrink: 0;
}

.elevation-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
}

.weather-info-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.weather-info-desktop:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.weather-info-desktop i {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 4px;
}

.weather-data {
  font-size: 12px;
  color: var(--text-color);
}

#weather-value-desktop {
  font-weight: 500;
  font-size: 12px;
}

.weather-icon {
  width: 48px;
  height: 24px;
  object-fit: contain;
  border: 0;
}

/* 長押しメニューを開くボタン（デスクトップでは非表示） */
/* タブレットサイズ以下ではdisplay: inline-flex;で表示 */
.open-longpress-btn {
  display: none;
}

/* 折り畳まれた検索結果を再表示するボタン、デスクトップでは非表示 */
/* タブレットサイズ以下ではdisplay: inline-flex;で表示 */
.show-search-result-btn {
  display: none;
}

/* より緩いレスポンシブ設定 */
@media (max-width: 1150px) {
  .address-group {
    margin-right: 15px;
  }

  .address {
    margin-right: 15px;
  }
}

@media (max-width: 1000px) {

  /* さらに間隔を縮める */
  .address-group {
    margin-right: 10px;
  }

  .address {
    margin-right: 10px;
  }
}

@media (max-width: 850px) {
  .nearest-stations {
    flex: 1 1 auto;
    min-width: 100px;
  }

  .address-group {
    flex: 2 1 auto;
  }
}

 /* モバイル広告が表示される前提のスタイルは、(max-width: 768px), を条件にしない */
@media
(hover: none) and (pointer: coarse) {

  /* モバイル・タブレットでは広告を出すため、location-infoを広告バナーの上に移動 */
  .location-info {
    position: fixed;
    /* 広告バナーの高さ分上に移動 */
    bottom: 50px;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-color);
    /* モバイルでは背景をガラス状に透けさせる */
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  }

  /* 標高、天気、最寄駅を非表示 */
  .weather-info-desktop,
  .elevation-info,
  .nearest-stations {
    display: none;
  }

  /* 左側の住所が右側のモバイルでのアクションボタンを押し出さない */
  .address-group {
    margin-right: 0;
    min-width: 0;
  }

  .address-info {
    min-width: 0;
  }

  /* 右詰めで横一列に並べる */
  .location-info-area-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* grow=0:余剰スペースで伸びない, shrink=0:不足時に縮まない, basis=130px） */
    flex: 0 0 130px;
    box-sizing: border-box;
  }

  /* ボタンの中身を横に揃える */
  .show-search-result-btn,
  .open-longpress-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--secondary-color);
    cursor: pointer;
  }

  /* 折り畳まれた検索結果を再表示するボタン（タブレットサイズまで表示） */
  .show-search-result-btn {
    white-space: nowrap;
  }

}

/* モバイル用スタイル */
@media (max-width: 600px) {

  /* 最寄駅のスタイル */
  .nearest-stations {
    flex: 1;
    justify-content: flex-start;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 20px);
  }

  .nearest-stations .station {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}