@charset "UTF-8";
@import url("/css/root.css");

.term_gyo {
  margin-bottom: 10px;
  font-size: 2.6rem;
  color: var(--main-text-color);
}

.term_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}

@media screen and (min-width: 960px) {
  .term_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

/*モーダルを開くボタン*/
.modal-open {
  border: solid 1px #ddd;
  padding: 10px;
  border-radius: 5px;
}

.modal-open svg {
  color: #42a8f0;
}

.modal-open:hover {
  cursor: pointer;
}

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active {
  opacity: 1;
  visibility: visible;
}

/*モーダル枠の指定*/
.modal-body {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 500px;
  width: 90%;
}

/*モーダルを閉じるボタンの指定*/
.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  background-color: var(--sub-color);
  display: block;
}

/*モーダル内のコンテンツの指定*/
.modal-content {
  background: #fff;
  text-align: left;
  padding: 30px;
  border-radius: 5px;
}

.modal-keyword {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--sub-color);
  font-size: 2rem;
}