html, body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Ubuntu, sans-serif;
  position: relative;
}

svg {
  background-size: 64px;
  background-image: url("data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7QAsUGhvdG9zaG9wIDMuMAA4QklNBCUAAAAAABAAAAAAAAAAAAAAAAAAAAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAeQB5AwERAAIRAQMRAf/EAHsAAAIDAQEBAAAAAAAAAAAAAAABAwQFAgYHAQACAwEBAAAAAAAAAAAAAAAAAgEDBAUGEAABAwIFAgQHAQEAAAAAAAABAAIDETEhQRIEBVEyYXEiE4Gh4UIjMxRSFREBAQEBAQADAQEBAQAAAAAAAAECEQMhEhMEMUFh/9oADAMBAAIRAxEAPwD6vDDJM/QwVcvTb3xxcZau34eNrqyHV8lk17LvoNxw8bnVjOn5oz7D6MqaF8T9DxQrXnfVO8uAns6SAFwzIHQJbw/2IiqmWQfYVt4ovwiRe2fGOmYXu9LcsLrPv24umV//AJO30Upj/pU/rVlwz95xjoW6m+puZAsr/P2U3zUq36haFMFccFHIeaMucbkkdCj6xN0MkFpUcmT1s8NDpYZKYO7Vh9788afPLS+Cz8WdHwRwdZvMw6mCSmDbrR4X54r9Mseq2f4zdCng4EcSk20TpZmsFyq/TXInznXpWNo0DpZc+tUnHShLl7QWkHGt0Z+EvNbmF0UzmG4XR89/ZjqOqakCYwUcBVb0+aX7G+jZ4afVGYycG9qx++flZ56aSqWhAZ3MzaYxGDg/uVvhlV6aYy3M4UmCAk20ropmuFwq/TPYM3j0rHAtBGdlztfDVm9dKLTVy8gMJOFLqJOltea3Mplmc55rqYzxmR0T0lCDBAKjevySfVP2SQzSRP1sNCjeewuNtSDmI3GkjdPzWXfjxo/QT8xG00jbq+SMePR+jLmmklfrealasZ5FGtowmpcmA45EjqMUfaJCJUlS3gpJV7Z8m6Bpa4am5CtlR6ePV/n6r/8A1tto1Vx/ys35Wnvoobzk3ztDGjS3OhutPl48Lao5FXS9V6+D8EWkk6ZaRcEDqUTUSSlHSx6qU8NQiQWQOi6B0IFi/wAfx/vn3Hj0HtHVZfX04uxhrRbSCJtGtCy30q36q+54zbytLmijzmnx6UfRiSxujkMbsHC63Y31n3lyn6SFmjkHT8kI66ijfLII24uNkutchszrb23GbeNrXOFZBmsG/W9ac4WJdpBK3S5g+CSbsPrMZPI8f7B9xg/GLjotfl69Z9ZUFpIHYEi9FGf8RaESJCLAG4kC1Ua/xEr0u0jbHC1jbCy5npe1r80qhIQGLzETWSiQXf3FbP56p3GcFoqnho4kKQ0OHia+VzzdnasvvVvl8NtY5V+qQRUS8RbqVsUTnusLpsTpbXnNfgumzOVJZRTwQOCnggcCBav8fyHsH23n0DtPRZfXz6uxtrRbuCVtWuCy3zq37K+55PbxNLWmrxknx50fdiSyOkkMjsXG63Yxxn3pyn4SFmjsHD8kI46ikfFIJG4OFkus9hs3jb23J7eRrWuNJDksG/K9ac7WJd3BE3U54+CSYtPrUZPI8h759th/Gbnqtfl5cZ9aUFpIQRVeTHcq6uB7kQEVZFWhkVFNlPB+tV1KF/7CmykJ1enJRTYPJZsnILRkOioyXQj/YEaGU0360mRUGSthKaDv/Z");
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
svg > #area, svg > #label, svg #author {
  cursor: pointer;
}

svg #author:before {
  content: 'edit';
  display: block;
}

.st0 {
  enable-background: new;
}

.red.st1,
.red .st1 {
  fill: #ef4444;
}

.orange.st1,
.orange .st1 {
  fill: #f97316;
}

.green.st1,
.green .st1 {
  fill: #22c55e;
}

.yellow.st1,
.yellow .st1 {
  fill: #eab308;
}

.blue.st1,
.blue .st1 {
  fill: #3b82f6;
}

.st1 {
  transition: all 0.2s ease;
  cursor: pointer;
}

.st1:hover {
  filter: brightness(1.1);
  stroke-width: 4;
  stroke: #000;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Specific hover colors for different prefecture states */
.red.st1:hover,
.red .st1:hover {
  fill: #dc2626 !important;
}

.orange.st1:hover,
.orange .st1:hover {
  fill: #ea580c !important;
}

.green.st1:hover,
.green .st1:hover {
  fill: #16a34a !important;
}

.yellow.st1:hover,
.yellow .st1:hover {
  fill: #ca8a04 !important;
}

.blue.st1:hover,
.blue .st1:hover {
  fill: #2563eb !important;
}

.nav-group {
  position: absolute;
  overflow: hidden;
  top: 0.75em;
  left: 1em;
  z-index: 10;
  font-family: 'Ubuntu Condensed', sans-serif;
}
.nav-group:hover {
  border-color: black;
}
.nav-group .link {
  /*background: white;*/
  position: relative;
  display: block;
  float: left;
  padding: 6px 1em;
  text-decoration: none;
  color: #1e293b;
  overflow: visible;
  transition: color .2s;
}
.nav-group .link:hover {
  color: #0f172a;
}
.nav-group .link::after {
  content: "";
  display: block;
  background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(226, 232, 240, 0.8);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 9;
  -webkit-transform: rotate(15deg);
     -moz-transform: rotate(15deg);
      -ms-transform: rotate(15deg);
          transform: rotate(15deg);
}
.nav-group .link:last-child::after {
  display: none;
}
.nav-group .link span {
  margin-left: 6px;
}
@media screen and (max-width: 767px) {
  .nav-group {
    font-size: .75em;
    border-width: 1px;
  }
  .nav-group .link::after {
    width: 1px;
  }
}

.form {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  max-width: 300px;
  position: absolute;
  top: 0;
  overflow: hidden;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  opacity: 0;
  z-index: -1;
}
.form.show {
  opacity: 1;
  z-index: 99;
}
.form .title {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 4px 1em;
}
[lang="en"] .form .title {
  padding-right: 70px;
}
.form .title .lang {
  font-weight: 600;
  margin-left: 2px;
}
.form .title .icon-group {
  position: absolute;
  right: 0;
  top: 0;
  padding: 0 12px;
}
.form .title .icon-group .icon {
  line-height: 30px;
  padding: 0px 6px;
  color: #bbb;
  cursor: pointer;
  display: block;
  float: left;
  text-decoration: none;
  transition: color 0.3s;
}
.form .title .icon-group .icon.search:hover {
  color: #3b82f6;
}
.form .title .icon-group .icon.close:hover {
  color: #666;
}
.form .label {
  font-weight: normal;
  padding: 4px 1em;
  cursor: pointer;
  display: block;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.form .label:hover, .form .label.selected {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid rgba(226, 232, 240, 0.6);
	border-radius: 8px;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.form .label.red:hover, .form .label.red.selected {
  background: #ef4444;
}
.form .label.orange:hover, .form .label.orange.selected {
  background: #f97316;
}
.form .label.green:hover, .form .label.green.selected {
  background: #22c55e;
}
.form .label.yellow:hover, .form .label.yellow.selected {
  background: #eab308;
}
.form .label.blue:hover, .form .label.blue.selected {
  background: #3b82f6;
}

.share {
  position: absolute;
  bottom: 0.75em;
  right: 1em;
  text-align: right;
  z-index: 10;
}
.share .btn {
  background: #fff;
  border: 1px solid #aaa;
  	border-radius: 12px;
  padding: 0px 10px;
  margin: 6px 0 0;
  color: black;
  cursor: pointer;
  display: inline-block;
  line-height: 27px;
  font-size: 0.75em;
  text-decoration: none;
  text-align: center;
  vertical-align: bottom;
}
.share select {
  height: 29px;
}

.d-none {
  display: none;
}
@media screen and (min-width: 768px) {
  .share .btn {
    display: block;
    font-size: 0.875em;
  }
  .d-lg-block {
    display: block;
  }
  .d-lg-inline-block {
    display: inline-block;
  }
}
.share .btn:hover {
  background: #eaeaea;
}
.share .gbb {
  color: #fff;
  border: 1px solid #3b82f6;
  border-radius: 3px;
  /*border-color: transparent;*/
  	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	/*color: #3b82f6;*/
    cursor: pointer;
}
.share .gbb:hover {
  border-color: #4d90fe;
    	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	-webkit-box-shadow: 0 1px 1px #bbb;
    -moz-box-shadow: 0 1px 1px #bbb;
    box-shadow: 0 1px 1px #bbb;
}
.share .gbb:active {
  border-color: #377cea;
    box-shadow: none;
}
.nearby {
  position: absolute;
  bottom: 0.75em;
  left: 1em;
  padding: 6px 1px;
  z-index: 10;
}
.nearby a {
  text-decoration: none;
  color: #3b82f6;
}
.nearby a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 767px) {
  .nearby {
    bottom: auto;
    left: auto;
    top: 0.75em;
    right: 1em;
    font-size: 0.75em;
    line-height: 13px;
  }
}

/* Prefecture name labels */
text[id^="label-"] {
	font-family: 'YuGothic', 'Meiryo', 'Hiragino Kaku Gothic ProN', sans-serif;
	font-size: 14px;
	font-weight: bold;
	fill: #333;
	text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Hide original Japanese text group */
#label {
	display: none;
}


