/* normalize.css v3.0.0 | MIT License | git.io/normalize */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden],
template {
  display: none;
}
a {
  background: transparent;
}
a:active,
a:hover {
  outline: 0;
}
abbr[title] {
  border-bottom: 1px dotted;
}
b,
strong {
  font-weight: bold;
}
dfn {
  font-style: italic;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
mark {
  background: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}
img {
  border: 0;
}
svg:not(:root) {
  overflow: hidden;
}
figure {
  margin: 1em 40px;
}
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}
pre {
  overflow: auto;
}
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
input {
  line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}
legend {
  border: 0;
  padding: 0;
}
textarea {
  overflow: auto;
}
optgroup {
  font-weight: bold;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td,
th {
  padding: 0;
}
body {
  background-color: #fff;
}
p {
  font-family: serif;
}
body {
  background: #fff;
}
#content {
  background: #fff;
  z-index: 1;
}
footer {
  position: absolute;
  bottom: 25px;
  width: 100%;
  font-size: 0.9em;
}
footer a {
  position: relative;
  margin: 0 auto;
  display: block;
  text-align: center;
  color: #999;
  text-decoration: none;
}
footer a:active,
footer a:hover {
  text-decoration: underline;
}
nav {
  position: relative;
  display: block;
  height: 42px;
  padding-bottom: 10px;
  width: 100%;
  background: #f9f9f9;
  font-size: 0.9em;
}
nav .hint {
  position: absolute;
  display: inline-block;
  right: 1rem;
  top: 50px;
  color: #f00;
  font-size: 0.78em;
}
nav .logout {
  display: none;
  text-align: right;
  float: right;
  margin: 0.5em;
  line-height: 1;
  color: #444;
}
nav .logout button {
  cursor: pointer;
  pointer-events: all;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #ccc;
  margin-left: 0.5rem;
}
nav .logout.visible {
  display: flex;
  align-items: center;
}
nav #login {
  float: right;
  text-align: right;
  padding: 0 0.5rem;
  margin: 0;
  line-height: 1;
  box-sizing: border-box;
  -webkit-appearance: none;
  align-items: center;
  color: #444;
  display: none;
}
nav #login.visible {
  display: flex;
}
nav #login label {
  margin-left: 0.5rem;
}
nav #login input {
  border: 1px solid #ccc;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 34px;
}
nav #login input#username,
nav #login input#password {
  text-align: left;
  padding: 0.5rem;
  font-size: 0.95em;
  font-family: "Source Sans", "Helvetica-Neue", Arial, sans-serif;
}
nav #login button.login-submit {
  -webkit-appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: all;
  text-align: right;
  float: right;
  padding: 0.5rem 1rem;
  margin: 0.5em;
  line-height: 1;
  background: #fff;
  border: 1px solid #ccc;
}
.search {
  margin: 0 auto;
  box-sizing: border-box;
}
.search .hint {
  font-size: 0.95em;
  padding-bottom: 0.4rem;
  visibility: hidden;
  color: #f00;
  max-width: 500px;
  line-height: 1.5;
  margin: 0 auto;
  text-align: center;
}
.search .hint.visible {
  visibility: visible;
}
.search .hint.visible span {
  text-decoration: underline;
  cursor: pointer;
}
.search input,
.search button {
  position: relative;
  height: 3rem;
  padding: 0.5rem 1rem;
  margin: 0;
  line-height: 1;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.search input {
  border: 1px solid #999;
  border-right: 0px;
  background: transparent;
  min-width: 150px;
  width: 50%;
  max-width: 280px;
}
.search button {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  min-width: 120px;
}
.page {
  height: calc(100vh - 60px);
}
#search {
  display: none;
  position: relative;
  margin: 0 auto;
  text-align: center;
}
#search.visible {
  display: block;
}
#search .search {
  text-align: center;
  position: relative;
  padding-top: 25vh;
}
#search .recommendation {
  display: block;
  margin: 2rem auto;
  text-align: center;
}
#search .recommendation a {
  color: #000;
  text-align: center;
}
#results {
  display: none;
  padding: 0 0.5rem;
}
#results.visible {
  display: block;
}
#results .result-view {
  display: none;
}
#results .result-view.visible {
  display: block;
}
#results button.back {
  text-align: left;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  line-height: 1;
  -webkit-appearance: none;
  box-sizing: border-box;
  background: #999;
  color: #fff;
  border: 1px solid #999;
}
#results #keyword-table a#download {
  float: right;
  padding: 6px 8px;
  font-size: 0.95em;
  color: #444;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  text-decoration: none;
  transition: 0.1s linear;
}
#results #keyword-table a#download:active,
#results #keyword-table a#download:hover {
  background: #eee;
}
#results #keyword-table .searched,
#results #keyword-table .relevant {
  margin-top: 0.5rem;
  max-width: 1120px;
}
#results #keyword-table .searched h3,
#results #keyword-table .relevant h3 {
  font-weight: normal;
  font-size: 1.4em;
  color: #999;
}
#results #keyword-table .table {
  display: table;
  padding-bottom: 3rem;
}
#results #keyword-table .table.hidden {
  display: none;
}
#results #keyword-table .table .row {
  display: table-row;
  color: #444;
  text-align: right;
  font-size: 0.95em;
  cursor: pointer;
}
#results #keyword-table .table .row:active,
#results #keyword-table .table .row:hover {
  background-color: rgba(0,0,0,0.08);
}
#results #keyword-table .table .row .relevancy {
  min-width: 80px;
}
#results #keyword-table .table .row .word {
  width: 20vw;
  min-width: 150px;
  text-align: left;
  color: #4682b4;
  text-decoration: underline;
}
#results #keyword-table .table .row.header {
  padding: 20px;
  cursor: initial;
}
#results #keyword-table .table .row.header:active,
#results #keyword-table .table .row.header:hover {
  background-color: #fff;
}
#results #keyword-table .table .row.header .word {
  color: #444;
  font-weight: normal;
  text-decoration: initial;
}
#results #keyword-table .table .row.header div {
  border-bottom: 1px solid #444;
}
#results #keyword-table .table .row div {
  display: table-cell;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}
#results #keyword-table .searched .table .row {
  background-color: #eee;
}
#results #keyword-table .searched .table .row:active,
#results #keyword-table .searched .table .row:hover {
  background-color: rgba(0,0,0,0.15);
}
#results #keyword-table .searched .table .row.header {
  background-color: #fff;
}
#results #keyword-table .searched .table .row.header:active,
#results #keyword-table .searched .table .row.header:hover {
  background-color: #fff;
}
#results #keyword-table .searched .table .row .relevancy {
  visibility: hidden;
}
#results #keyword-table .relevant .table .row.header {
  cursor: pointer;
}
#results #keyword-table .relevant .table .row.header div:after {
  content: '';
  width: 15px;
  height: 15px;
  position: absolute;
  color: #ff8c00;
  font-size: large;
  font-weight: bold;
}
#results #keyword-table .relevant .table .row.header div.word {
  cursor: initial;
}
#results #keyword-table .relevant .table .row.header div.asc {
  color: #ff8c00;
  font-weight: bold;
}
#results #keyword-table .relevant .table .row.header div.asc:after {
  content: '↑';
}
#results #keyword-table .relevant .table .row.header div.des {
  color: #ff8c00;
  font-weight: bold;
}
#results #keyword-table .relevant .table .row.header div.des:after {
  content: '↓';
}
#results #graphic {
  margin: 0;
}
#results #graphic .search-container .search .hint {
  text-align: left;
  margin: 0.5rem 0 0 0;
}
#results #graphic .selection-container {
  margin: 1rem auto;
}
#results #graphic .selection-container ul {
  margin: 0 0.5rem 0 0;
  padding: 0.2rem;
  padding-left: 0.4rem;
  display: inline-block;
  background: #888;
  color: #f9f9f9;
}
#results #graphic .selection-container ul li {
  list-style: none;
  display: inline-block;
}
#results #graphic .selection-container ul li button {
  text-align: middle;
  padding: 0.3rem 1rem;
  line-height: 1;
  -webkit-appearance: none;
  box-sizing: border-box;
  background: #888;
  border: 0;
  border-right: 1px solid #999;
}
#results #graphic .selection-container ul li:last-child button {
  border-right: 0;
}
#results #graphic .selection-container ul li.selected button {
  background: #fff;
  color: #000;
}
#results #graphic .graphic-container {
  position: relative;
  min-height: 500px;
}
#results #graphic .graphic-container .sfr-container,
#results #graphic .graphic-container .sale-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  min-height: 500px;
  background: #fff;
}
#results #graphic .graphic-container h2 {
  font-size: 20px;
  cursor: pointer;
  pointer-events: all;
  display: inline;
  margin: 0;
  margin-right: 0.5rem;
  line-height: 1;
  padding: 5px;
  font-weight: normal;
}
#results #graphic .graphic-container h2.sfr {
  color: #ff8c00;
}
#results #graphic .graphic-container h2.sale {
  color: #509ad7;
}
#results #graphic .graphic-container h2:active,
#results #graphic .graphic-container h2:hover,
#results #graphic .graphic-container h2.selected {
  color: #fff;
}
#results #graphic .graphic-container h2:active.sfr,
#results #graphic .graphic-container h2:hover.sfr,
#results #graphic .graphic-container h2.selected.sfr {
  background: #ff8c00;
}
#results #graphic .graphic-container h2:active.sfr.hidden,
#results #graphic .graphic-container h2:hover.sfr.hidden,
#results #graphic .graphic-container h2.selected.sfr.hidden {
  background: #fff;
  cursor: default;
}
#results #graphic .graphic-container h2:active.sale,
#results #graphic .graphic-container h2:hover.sale,
#results #graphic .graphic-container h2.selected.sale {
  background: #509ad7;
}
#results #graphic .graphic-container h2:active.sale.hidden,
#results #graphic .graphic-container h2:hover.sale.hidden,
#results #graphic .graphic-container h2.selected.sale.hidden {
  background: #fff;
  cursor: default;
}
#results #graphic .graphic-container .tooltip {
  position: absolute;
  height: 100%;
  max-height: 400px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #444;
  pointer-events: none;
  display: none;
}
#results #graphic .graphic-container .tooltip.visible {
  display: block;
}
#results #graphic .graphic-container .tooltip .box {
  position: absolute;
  left: 0;
  width: 200px;
  height: auto;
  background: #ffd700;
}
#results #graphic .graphic-container .tooltip .box p {
  padding: 1rem 0 0.5rem 1rem;
  font-family: "Source Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  font-size: 13px;
}
#results #graphic .graphic-container .tooltip .box h4 {
  margin: 0;
  padding: 0 0 1.5rem 1rem;
  font-size: 18px;
  font-weight: normal;
}
#results #graphic .graphic-container .tooltip .point {
  position: absolute;
  left: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #444;
  background: #fff;
}
#results #graphic .graphic-container .sale-container .tooltip .box {
  background: #eee;
}
#results #graphic .graphic-container .warning {
  color: #ff8c00;
  position: relative;
  z-index: 100;
  padding-top: 0.5rem;
}
#results #graphic .graphic-container svg .tick text {
  font-size: 14px;
  fill: #999;
}
#results #graphic .graphic-container svg text.y-label {
  fill: #999;
  text-anchor: start;
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
}
#results #graphic .graphic-container svg path.main {
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 1;
}
#results #graphic .graphic-container svg .weekend-bg rect {
  pointer-events: none;
  fill: transparent;
  stroke: 0;
}
#results #graphic .graphic-container svg .weekend-bg rect.weekend {
  fill: #000;
  fill-opacity: 0.05;
}
#results #graphic .graphic-container svg .foreground rect {
  pointer-events: all;
  fill: transparent;
  cursor: pointer;
}
