@charset "UTF-8";
#gmap {
  width: 100%;
  height:100%;
  position: relative;
}

/* infoWindow のヘッダーを削除する */
/* https://github.com/visgl/react-google-maps/issues/378#issuecomment-2141560117 */
#gmap .gm-style-iw-chr {
  position: absolute;
  display: flex;
  top: 0;
  right: 0;
}
#gmap .gm-style-iw.gm-style-iw-c {
  padding-top: 14px !important;
}

/* 測定地点の番号を非表示にする */
#gmap div[data="monitoring-post-number"] {
  display: none;
}

/* フォント */
#gmap div[data="pc"], #gmap div[data="sp"] {
  font-family: "游ゴシック体", YuGothic, "Yu Gothic Medium", "Yu Gothic UI", sans-serif;
}

/* PC用 */
@media print, screen and (min-width: 768px) {
  /* SP用のコンテンツを非表示にする */
  #gmap div[data="sp"] {
    display: none;
  }

  #gmap .gm-style-iw.gm-style-iw-c {
    border-radius: 20px;
    padding: 20px 24px 24px;
  }

  #gmap div[data="pc"] div[data="title"] {
    width: 100%;
    max-width: 350px;

    padding-right: 32px;
    padding-bottom: 16px;
    margin: 0 0 12px;

    border-bottom: 1px solid #B1DC98;

    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: 16px;
  }

  #gmap div[data="pc"] div[data="value"] {
    margin-bottom: 16px;
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: center;
  }
  #gmap div[data="pc"] div[data="value"] span {
    font-size: 1.6rem;
    color: #296700;
    font-weight: 700;
  }
  #gmap div[data="pc"] div[data="value"] strong {
    font-size: 4.2rem;
    color: #296700;
    font-weight: 700;
    line-height: 1.3;
  }

  #gmap div[data="pc"] div[data="setup-date"] {
    margin-bottom: 16px;
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: center;
    overflow-x: clip;
    background-color: #F2F2F2;
    padding: 8px;
    border-radius: 8px;
    font-weight: 500;
  }

  #gmap div[data="pc"] div[data="button"] {
    margin-bottom: 0;
    padding: 16px 20px 16px 44px;
    border-top: 1px solid #B1DC98;
    font-family: "A+mfCv-TPスカイ ハイコントラスト M StdN";
    font-weight: 400;
    font-style: normal;
    font-size: 1.4rem;
    text-align: left;
    background-color: #296700;
    border-radius: 8px;
    color: #fff;
  }

  #gmap div[data="pc"] div[data="button"] {
    display: grid;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.5;
  }

  #gmap div[data="pc"] div[data="button"] {
    padding: 20px 20px 20px 44px;
    background-color: #296700;
    color: #fff;
    font-family: "A+EqpB-游ゴシック体 Pr6N B", YuGothic, 游ゴシック体, YuGothic, "Yu Gothic Medium", "Yu Gothic UI", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
  }

  #gmap div[data="pc"] div[data="button"]:before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_600_4175" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="%23D9D9D9"/></mask><g mask="url(%23mask0_600_4175)"><circle cx="12" cy="12" r="10" fill="white"/><mask id="mask1_600_4175" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="4" y="4" width="16" height="16"><rect x="4" y="4" width="16" height="16" fill="%23D9D9D9"/></mask><g mask="url(%23mask1_600_4175)"><path d="M15 12L8 12" stroke="%23296700" stroke-linecap="square"/><path d="M12.6667 8.66669L16.0001 12L12.6667 15.3334" stroke="%23296700" stroke-linecap="square"/></g></g></svg>') no-repeat center center/contain;
    transition: all ease-in-out 0.25s;
  }
}

/* SP用 */
@media screen and (max-width: 767.98px) {
  #gmap {
    overflow: visible;
  }
  /* 地図の種類選択を削除する */
  .gmnoprint.gm-style-mtc-bbw {
    display: none;
  }

  /* PC用のコンテンツを非表示にする */
  #gmap div[data="pc"] {
    display: none;
  }

  #gmap .gm-style-iw.gm-style-iw-c {
    border-radius: 8px;
    padding: 12px 12px 12px 12px;
  }

  #gmap div[data="sp"] div[data="title"] {
    padding-right: 12px;
    font-weight: 700;
  }

  #gmap div[data="sp"] div[data="value"] {
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.8;
    text-align: center;
  }
  #gmap div[data="sp"] div[data="value"] span {
    color: #296700;
    font-weight: 700;
  }
  #gmap div[data="sp"] div[data="value"] strong {
    font-size: 1.6rem;
    color: #296700;
    font-weight: 700;
    line-height: 1.3;
  }
  #gmap div[data="sp"] span[data="measured-date"] {
    padding-left: 4px;
  }

  #gmap div[data="sp"] div[data="button"] {
    margin-bottom: 0;
    padding: 4px 4px 4px 32px;
    border-top: 1px solid #B1DC98;
    font-family: "A+mfCv-TPスカイ ハイコントラスト M StdN";
    font-weight: 400;
    font-style: normal;
    text-align: left;
    background-color: #296700;
    border-radius: 8px;
    color: #fff;
  }

  #gmap div[data="sp"] div[data="button"] {
    display: grid;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.5;
    position: relative;
  }

  #gmap div[data="sp"] div[data="button"]:before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_600_4175" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="%23D9D9D9"/></mask><g mask="url(%23mask0_600_4175)"><circle cx="12" cy="12" r="10" fill="white"/><mask id="mask1_600_4175" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="4" y="4" width="16" height="16"><rect x="4" y="4" width="16" height="16" fill="%23D9D9D9"/></mask><g mask="url(%23mask1_600_4175)"><path d="M15 12L8 12" stroke="%23296700" stroke-linecap="square"/><path d="M12.6667 8.66669L16.0001 12L12.6667 15.3334" stroke="%23296700" stroke-linecap="square"/></g></g></svg>') no-repeat center center/contain;
    transition: all ease-in-out 0.25s;
  }
}

/* モーダルを中央にする */
#modal {
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}