html, body {
  height: 100%;
  padding: 0;
  margin: 0;
}

header {
  box-sizing: border-box;
  border-bottom: 5px solid #338202;	
  width: 100%;
  background-color: #FFF;
  height: max(5vh, 60px);
}

p.title{
  width: auto;
  padding-top: max(1.5vh, 10px);
  padding-left: 1vw;
  margin-top: 0px;
  margin-left: 0px;
  margin-bottom: 0px;
  margin-right: 0px;
  font-size: max(2vh, 1.5em);
  color:#000;
  line-height: 1;
  font-weight: bold;
  font-family: "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}
p.sub-title{
  float: left;
  padding-left: 1vw;
  margin-top: 0px;
  margin-left: 0px;
  margin-bottom: 0px;
  margin-right: 0px;
  font-size: max(1vh, 1em);
  color:#000;
  line-height: 1;
  font-weight: bold;
  font-family: "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

div.site_ci--shikoku{
  content: url('/shikoku/shared_new/shared/images/logo_ci_shikoku.gif');
  float: right;
  margin-top: min(-1.5vh, -10px);
  margin-bottom: 0px;
  margin-left: auto;
  margin-right: 0px;
  padding-right: 1vh;
  width: min(210px, 40vw);
  height: auto;
}

#map {
	z-index: 1;
	position: absolute;
	top: max(5vh, 60px);
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	overflow: hidden;
}


/* 中心の十字線 */
.leaflet-control-container::before {
  content: '';
  z-index: 2000;
  position: absolute;
  border-radius: 2px;
  top: calc(50% - 20px);
  left: calc(50% - 2px);
  width: 4px;
  height: 40px;
  background: rgba(0, 0, 0, .8);
}
.leaflet-control-container::after {
  content: '';
  z-index: 2000;
  position: absolute;
  border-radius: 2px;
  top: calc(50% - 2px);
  left: calc(50% - 20px);
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, .8);
}


/* 画面右下のattribution */
.leaflet-control-attribution {
  width: min(50vw, 100%);
  text-align: left;
}
/* .leaflet-control-scale {
} */


/* ポップアップ */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  opacity: 0.9;
}
.leaflet-popup-tip-container {
  margin-top: -3px;
  height: 23px;
}
.popup-title {
  font-size: 1.5em;
  font-weight: bold;
}
.popup-table,
.popup-table td,
.popup-table th {
  font-weight: normal;
  text-align: left;
  color: black;
  width: auto;
	border-collapse: collapse;
	table-layout: auto;  
  border: 1px solid #333;
  padding: 1px;
  background-color: transparent;
}
.popup-table th {
  font-weight: bold;
  background-color:  rgb(200, 200, 200);
}


/* 林班番号、林道名のラベル */
.label-rinpan {
  font-size: 200%;
  text-shadow:1px 1px 0 #000000, -1px -1px 0 #000000,-1px 1px 0 #000000, 1px -1px 0 #000000,0px 1px 0 #000000,  0-1px 0 #000000,-1px 0 0 #000000, 1px 0 0 #000000;
  white-space: nowrap;
  opacity: 0.8;
  color: #00bfff
}

.label-rindou {
  font-size: 1.5em;
  text-shadow:1px 1px 0 #000000, -1px -1px 0 #000000,-1px 1px 0 #000000, 1px -1px 0 #000000,0px 1px 0 #000000,  0-1px 0 #000000,-1px 0 0 #000000, 1px 0 0 #000000;
  white-space: nowrap;
  opacity: 0.8;
  color: brown;
}


/* 国有林内の事業予定箇所 */
.popup-ryuuboku div[class*="leaflet-popup-content-wrapper"] ,
.popup-ryuuboku div[class*="leaflet-popup-tip"] {
  z-index: 9999;
  background-color: rgba(255, 0, 0, 0.1);
}
.popup-seihin div[class*="leaflet-popup-content-wrapper"] ,
.popup-seihin div[class*="leaflet-popup-tip"] {
  z-index: 9999;
  background-color: rgba(0, 0, 255, 0.1);
}
.popup-zourin div[class*="leaflet-popup-content-wrapper"] ,
.popup-zourin div[class*="leaflet-popup-tip"] {
  z-index: 9999;
  background-color: rgba(0, 255, 0, 0.1);
}
.popup-rindou div[class*="leaflet-popup-content-wrapper"] ,
.popup-rindou div[class*="leaflet-popup-tip"] {
  z-index: 9999;
  background-color: rgba(255, 255, 0, 0.1);
}
.popup-chisan div[class*="leaflet-popup-content-wrapper"] ,
.popup-chisan div[class*="leaflet-popup-tip"] {
  z-index: 9999;
  background-color: rgba(128, 0, 128, 0.1);
}
.popup-else div[class*="leaflet-popup-content-wrapper"] ,
.popup-else div[class*="leaflet-popup-tip"] {
  z-index: 9999;
  background-color: rgba(228, 0, 127, 0.1);
}
div[class*="leaflet-popup popup-"] {
  z-index: 9999;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.9);
}

div[class*="label-jigyou"] {
  border-right: 3px solid transparent;
  text-align: left;
  text-indent: 4px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  white-space: nowrap;
}
div[class*="label-jigyou"]:before {
  position: absolute;
  top: -10px;
  left: -42px;
  width: 3px;
  height: 40px;
  background-color: #000;
  border-radius: 30%;
}
div[class*="label-jigyou"]:hover {
  border-top: 10px solid rgba(255, 255, 0, 0.9);
  border-bottom: 10px solid rgba(255, 255, 0, 0.9);
  border-left: 40px solid rgba(255, 255, 0, 0.9);
  border-right: 3px solid transparent;
  color: #000;
  text-shadow: none;
}
.label-jigyou-ryuuboku {
  border-top: 10px solid rgba(255, 0, 0, 0.5);
  border-bottom: 10px solid rgba(255, 0, 0, 0.5);
  border-left: 40px solid rgba(255, 0, 0, 0.5);
}
.label-jigyou-ryuuboku:before{
  content: "立販";
}
.label-jigyou-seihin {
  border-top: 10px solid rgba(0, 0, 255, 0.5);
  border-bottom: 10px solid rgba(0, 0, 255, 0.5);
  border-left: 40px solid rgba(0, 0, 255, 0.5);
}
.label-jigyou-seihin:before{
  content: "生産";
}
.label-jigyou-zourin {
  border-top: 10px solid rgba(0, 255, 0, 0.5);
  border-bottom: 10px solid rgba(0, 255, 0, 0.5);
  border-left: 40px solid rgba(0, 255, 0, 0.5);
}
.label-jigyou-zourin:before{
  content: "造林";
}
.label-jigyou-rindou {
  border-top: 10px solid rgba(255, 255, 0, 0.5);
  border-bottom: 10px solid rgba(255, 255, 0, 0.5);
  border-left: 40px solid rgba(255, 255, 0, 0.5);
}
.label-jigyou-rindou:before{
  content: "林道";
}
.label-jigyou-chisan {
  border-top: 10px solid rgba(255, 255, 0, 0.5);
  border-bottom: 10px solid rgba(255, 255, 0, 0.5);
  border-left: 40px solid rgba(255, 255, 0, 0.5);
}
.label-jigyou-chisan:before{
  content: "治山";
}
.label-jigyou-chisan {
  border-top: 10px solid rgba(128, 0, 128, 0.5);
  border-bottom: 10px solid rgba(128, 0, 128, 0.5);
  border-left: 40px solid rgba(128, 0, 128, 0.5);
}
.label-jigyou-else:before{
  content: "その他";
}
.label-jigyou-else {
  border-top: 10px solid rgba(228, 0, 127, 0.5);
  border-bottom: 10px solid rgba(228, 0, 127, 0.5);
  border-left: 40px solid rgba(228, 0, 127, 0.5);
}