@charset "UTF-8";
/* ------------------------------
相関図モーダル（js/chart_modal.js とセット）
------------------------------ */
/* クリック範囲 */
#chart .chartMap {
  position: relative;
  display: block;
  max-width: 100% !important;
}
#chart .chartMap img {
  display: block;
  width: 100%;
}
#chart .chartMap__btn {
  position: absolute;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
#chart .chartMap__btn:hover,
#chart .chartMap__btn:focus-visible {
  border-color: #e9bc47;
  background-color: rgba(255, 255, 255, .12);
  outline: none;
}
#chart .chartMap__note {
  margin: 10px 0 0;
  font-size: 1em;
  text-align: center;
  color: #555;
}

/* モーダル */
.chartModal {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* 共通ヘッダー・ページトップボタンより前面 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  /* 閉じるとき：フェードアウトが終わってから非表示にする */
  transition: opacity .3s, visibility 0s .3s;
}
.chartModal.is-open {
  opacity: 1;
  visibility: visible;
  /* 開くとき：すぐ表示扱いにして、「×」にフォーカスを移せるようにする */
  transition: opacity .3s, visibility 0s;
}
html.chartModal-lock {
  overflow: hidden;
}
.chartModal__box {
  position: relative;
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  border: 3px solid #000;
  box-sizing: border-box;
}
.chartModal__close {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;  /* 押しやすいようにタップ範囲を広げる */
  height: 56px;
  padding: 0;
  background: none;
  border: none;
  font-size: 48px;
  line-height: 1;
  color: #000;
  cursor: pointer;
}
.chartModal__photo {
  flex: 0 0 260px;
}
.chartModal__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.chartModal__txt {
  flex: 1;
  min-width: 0;
}
.chartModal__txt p {
  margin: 0;
}
.chartModal__tag {
  display: inline-block;
  margin-bottom: 18px !important; /* 下の名前のルビと詰まらないように */
  padding: 2px 10px;
  background: #1d7d05;
  color: #fff;
  font-size: 0.85em;
  font-weight: bold;
}
.chartModal__role {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1.3;
}
.chartModal__role ruby rt {
  font-size: 0.4em;
  font-weight: normal;
  letter-spacing: 0.05em;
}
.chartModal__role .chartModal__sp {
  display: inline-block;
  width: 0.4em;
}
.chartModal__actor {
  margin-top: 4px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9bc47;
  font-size: 1.2em;
  font-weight: bold;
  color: #1d7d05;
}
.chartModal__profile {
  margin-top: 14px !important;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .chartModal__box {
    display: block;
    padding: 36px 20px 24px;
  }
  .chartModal__photo {
    width: 60%;
    margin: 0 auto 16px;
  }
  .chartModal__role {
    font-size: 1.5em;
  }
  .chartModal__tag {
    font-size: 0.95em;
  }
  #chart .chartMap__note {
    font-size: 0.9em;
  }
}
