:root {
  --smart_app_banner-height: 78px;
}

html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,Segoe UI,HiraginoCustom,Hiragino Kaku Gothic ProN,YuGothic,Yu Gothic,Meiryo,sans-serif;
}

#smart_app_banner {
  position: absolute;
  top: 0px;
  width: 100vw;
  height: var(--smart_app_banner-height);
}

@media screen and (orientation: landscape) {
  #smart_app_banner {
    display: none;
  }
}

#map {
  position: absolute;
  top: var(--smart_app_banner-height);
  width: 100vw;
  height: calc(50% - var(--smart_app_banner-height));
}

@media screen and (orientation: landscape) {
  #map {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 50%;
    height: 100%;
  }
}

.link_container {
  position: fixed;
  right: calc(env(safe-area-inset-right) + 16px);
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  margin-left: 16px;
  padding: 8px 4px 8px 8px;
  border-radius: 40px;
  z-index: 1000;
  background-color: #ecececcc;
}

.link_container ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0px;
  padding: 0px;
}

.link_container .social_icon {
  width: 40px;
  height: 40px;
  margin-left: 8px;
  margin-right: 8px;
  cursor: pointer;
  border-radius: 50%;
  background: #000;
}

.link_container .social_icon:hover {
  opacity: 0.6;
  transition-duration: 0.1s;
}

.link_container p {
  font-weight: bold;
  font-size: 16px;
  text-align: bottom;
  margin: 4px;
}

.link_container .labo_logo {
  height: 40px;
  max-width: 180px;
  margin-left: 8px;
  margin-right: 8px;
  cursor: pointer;
}

.link_container .labo_logo:hover {
  opacity: 0.6;
  transition-duration: 0.1s;
}

.social_share .social_share_item:nth-child(6) {
  display: none;
}

@media screen and (max-width: 768px) {
  .link_container {
    padding: 8px;
    margin: 0;
  }

  .link_container .social_icon:hover {
    opacity: 1;
  }

  .social_share {
    display: block;
    position: relative;
    width: 56px;
    height: 56px;
    overflow: hidden;
    transition: all 0.5s;
  }

  .social_share.is-visible {
    width: calc(56px * 5);
  }

  .social_share .social_share_item {
    position: absolute;
    right: calc(56px * 0);
    transition: all 0.5s;
  }

  .social_share .social_share_item:nth-child(1) {
    display: none;
  }

  .social_share .social_share_item:nth-child(6) {
    display: block;
  }

  .social_share .social_share_item:nth-child(6) .social_icon {
    box-sizing: border-box;
    padding: 4px;
  }

  .social_share.is-visible .social_share_item:nth-child(2) {
    right: calc(56px * 4);
    z-index: 0;
  }

  .social_share.is-visible .social_share_item:nth-child(3) {
    right: calc(56px * 3);
    z-index: 1;
  }

  .social_share.is-visible .social_share_item:nth-child(4) {
    right: calc(56px * 2);
    z-index: 2;
  }

  .social_share.is-visible .social_share_item:nth-child(5) {
    right: calc(56px * 1);
    z-index: 3;
  }

  .social_share.is-visible .social_share_item:nth-child(6) {
    right: calc(56px * 0);
    z-index: 4;
  }
}
