body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: Monospace;
  font-size: 16px;
  line-height: 19px;
  overscroll-behavior: none;
}

a {
  color: #9c8b97;
  text-decoration: none;
  font-size: 1.6vh;
}

a:hover {
  text-decoration: underline;
}

#main_title {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 21px;
  font-weight: bold;
  color: #ffffff;
  font-family: "メイリオ", Meiryo, sans-serif;
  z-index: 1000;
}

#map_title {
  position: absolute;
  top: 19px;
  left: 10px;
  width: 27%;
  text-align: center;
  font-size: 19px;
  font-weight: bold;
  color: #ffffff;
  padding: 5px 0;
  font-family: "メイリオ", Meiryo, sans-serif;
}

#map_image {
  position: absolute;
  /*top: 25px;*/
  top: 5px;
  left: 10px;
  /*left: 0px;*/
  width: 27%;
  height: 82%;
  /*height: auto;*/
}

#container {
  position: absolute;
}

#info {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  text-align: center;
}

#info1 {
  color: #cccccc;
  margin-bottom: 10px;
}

#info1 a {
  color: #cac6ff;
  font-size: 16px;
}

#info1 H3 {
  color: #cac6ff;
  margin: 5px 0;
  font-size: 16px;
  text-align: center;
}

#info1 H3 a {
  color: #cac6ff;
  font-size: 18px;
}

#info2 {
  color: #fff;
  font-family: monospace;
  margin-bottom: 10px;
}

#copyright {
  position: absolute;
  bottom: 15px;
  right: 25px;
  color: #cccccc;
  font-size: 12px;
  white-space: nowrap;
}

#copyright a {
  color: #cac6ff;
  font-size: 14px;
}

.btn {
  cursor: pointer;
  text-transform: uppercase;
  min-width: 30px;
  max-width: 80px;
  min-height: 15px;
  max-height: 40px;
  width: 5vw;
  height: 5vh;
}

#buttons {
  position: absolute;
  bottom: 5%;
  left: 40%;

  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chrome等 */
  -ms-user-select: none; /* IE10以降 */
}

#button1 {
  position: absolute;
  bottom: 5%;
  left: 50%;

  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chrome等 */
  -ms-user-select: none; /* IE10以降 */
}

img {
  pointer-events: none;
  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chrome等 */
  -ms-user-select: none; /* IE10以降 */
}

#marker {
  position: absolute;
  left: 0px;
  top: 0px;
}

#marker2 {
  position: absolute;
  left: 0px;
  top: 0px;
}

#video {
  position: absolute;
  top: 85%;
  left: 7px;
  width: 25%;
}

#myText {
  position: absolute;
  left: 0px;
  top: 0px;
  font-size: 16px;
  font-weight: bold;
}

#movie {
  position: absolute;
  top: 75%;
  left: 0px;
  width: 25%;
}

#audio {
  position: absolute;
  left: 0px;
  bottom: 0%;
}

.btn1 {
  cursor: pointer;
  background: transparent;
  color: #ffffff;
  border: 1px solid #fff;

  text-transform: uppercase;
  min-width: 20px;
  max-width: 40px;
  min-height: 15px;
  max-height: 30px;
  width: 5vw;
  height: 5vh;
}

.btn1:hover {
  text-decoration: underline;
}

#panel_controls {
  position: absolute;
  bottom: 3%;
  left: 65%;

  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chrome等 */
  -ms-user-select: none; /* IE10以降 */
}

#go_button {
  position: absolute;
  left: 20%;
  bottom: 17%;

  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chrome等 */
  -ms-user-select: none; /* IE10以降 */
}

#op_buttons {
  position: absolute;
  left: 20%;
  bottom: 23%;

  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chrome等 */
  -ms-user-select: none; /* IE10以降 */
}

/* メッセージテキストのスタイル */
#message {
  color: #ffffff;
  font-weight: bold;
}

#university_info {
  text-align: center;
  margin-bottom: 10px;
}

#university_info H3 {
  color: #cac6ff;
  margin: 5px 0;
  font-size: 16px;
}

#university_info H3 a {
  color: #cac6ff;
  font-size: 16px;
}

#buttons, #panel_controls, #op_buttons, #go_button {
  z-index: 1000 !important;
  position: absolute !important;
}

#subtitle_ja {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 24px;      /* ← 一回り大きく（20px→24px） */
  padding: 8px 16px;    /* ← 文字に合わせてバランス調整 */
  border-radius: 6px;
  z-index: 2000;
  pointer-events: none;
  white-space: pre-wrap;
  text-align: center;
  max-width: 40%;       /* ← 長文時に横幅制限 */
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "メイリオ", Meiryo,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-weight: 500;
}

#subtitle_en {
  position: absolute;
  top: 12%;               /* タイトルより少し下 */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  padding: 6px 16px;
  border-radius: 6px;
  z-index: 2000;
  pointer-events: none;
  white-space: pre-wrap;
  text-align: center;
  max-width: 70%;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", /* Linux系やChromeでの無難フォールバック */
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo",
    sans-serif;
  font-weight: 500;       /* わずかに太めで視認性UP */
  letter-spacing: 0.2px;  /* 英字の詰まりを軽く緩和（日本語に影響小） */
}