html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Header ===== */
header{
  padding:10px;
  border-bottom:2px solid #7aaed6;
  background-color:#d6ecff;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

h1{
  margin:0;
  font-size:20px;
  color:#174d7a;
}

/* ===== Lang Button ===== */
.lang-switch{
  font-size:18px;
  color:#174d7a;
  text-align:right;
}

/* ===== Home Button ===== */
.home-btn{
  text-decoration:none;
  background:#ffffff;
  color:#174d7a;
  padding:4px 14px;
  border-radius:10px;
  border:2px solid #7aaed6;
  font-weight:600;
  font-size:18px;
  transition:all .2s ease;
}

.home-btn:hover{
  background:#f4faff;
  border-color:#3c7fb1;
}

/* スマホ */
@media (max-width: 768px) {
  header{
    padding:5px 10px 8px 10px;
  }

  h1{
    font-size:80%;
  }

  /* ===== Lang Button ===== */
  .lang-switch{
    font-size:80%;
  }

  /* ===== Home Button ===== */
  .home-btn{
    font-size:80%;
  }
}

.viewer-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

#target {
  width: 100%;
  height: 100%;
}

/* controlパネル内の不要ボタンを消す */
input[type="button"][title="Show/hide game info"],
input[type="button"][title="Edit game info"],
input[type="button"][title="Edit comment"] {
  display: none !important;
}

/* コメント文字 */
.besogo-comment div {
  font-family:
    "Meiryo",
    "Hiragino Sans",
    "Segoe UI",
    sans-serif !important;
  font-size: 20px !important;
  line-height: 1.6;
  padding: 10px;
}

/* スマホ */
@media (max-width: 768px) {
  
  .besogo-control button[title="Jump back"],
  .besogo-control button[title="Jump forward"],
  .besogo-control button[title*="Variants"]{
    display: none !important;
  }

  .besogo-control button[title="Previous node"],
  .besogo-control button[title="Next node"] {
    min-width: 70px;
    min-height: 30px;
  }

  .besogo-control button[title="Previous node"] {
    margin-right: 8px !important;
  }
}

/* 白石黒縁 */
.besogo-svg-whiteStone {
  stroke: #000 !important;
  stroke-width: 1px !important;
  vector-effect: non-scaling-stroke;
}
