@charset "utf-8";

html {
  /* font-family: "ヒラギノ角ゴ Pro W3", "MS Pゴシック", sans-serif; */
  font-family: "Segoe UI", "Meiryo", sans-serif;
}
body {
  margin: 30px;
}
h1 {
  text-align: center;
}

table {
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  border: 1px solid #333;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  line-height: 1.5;
}
th {
  background-color: #eee;
}
/* 参考文献 */
#references table td:nth-child(2),
#references table td:nth-child(4) {
  min-width: 350px;
  white-space: normal;
}

a {
  color: #0074d9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* 出力結果 */
.output {
  display: inline-block;
  margin-left: 1em;
}
.output::before {
  content: "- ";
}

/* タブ切り替え */
#tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  gap: 0;
}
.tab {
  display: inline-block;
  padding: 0.55em 1.2em;
  font-size: 0.95rem;
  text-decoration: none;
  color: #333;
  background: #f5f5f5;

  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 6px 6px 0 0;

  margin-right: -1px;
  cursor: pointer;
  transition: background 0.2s;

  font-weight: bold;
}
.tab:hover, .tab:focus-visible {
  background: #e9e9e9;
}
.tab.active {
  background: #fff;
  border-color: #ddd #ddd #fff;
  color: #000;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* bibtex modal window */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 20% auto 0 auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  font-family: "Courier New", Courier, monospace;
  padding-top: 48px;
}
.modal-content pre {
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}
.close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  z-index: 2;
}
.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
