/* 五十音検索用ボタン（すべて） */
.search_consonant > .consonant_list {
  display: flex;
  padding-left: 0;
  flex-wrap: wrap;
}

/* キーワード検索グループ */
.search_keywords_group{
  display: flex;
  max-width: 100%;
}

.search_keywords_group label{
  display: flex;
  max-width: 100%;
  word-break: keep-all;
  align-items: center;
  overflow: auto;
}

/* キーワード入力フォーム */
.keyword_form {
  display: block;
  width: 600px;
  margin-left: 20px;
  padding: 10px 10px;
  margin-right: 10px;
  background-color: #F8F8F8;
  border: #ADADAD 1px solid;
  border-radius: 4px;
  box-sizing: border-box;
}

/* 全ボタン共通 */
.btn_consonant a,
.btn_clear a,
.btn_search a {
  display: inline-flex;
  position: relative;
  padding: 12px 20px;
  border-radius: 3px;
  font-weight: bold;
  letter-spacing: 0.15em;
  line-height: 1.0;
  text-decoration: none;
  word-break: keep-all;
  box-sizing: border-box;
  justify-content: center;
}

/* 五十音検索ボタン（単体） */
.btn_consonant {
  margin-bottom: 10px;
}

/* 五十音検索ボタンのホバー／アクティブ時 */
.btn_consonant a:hover,
.btn_consonant.active a {
  background: #315694;
  color: #fff;
  opacity: 1.0;
  border-radius: 3px;
}

/* キーワード検索ボタン */
.btn_search a {
  background: #315694;
  color: #fff;
  align-items: center;
}

/* キーワード検索ボタンのアイコン */
.btn_search a::before{
  display: block;
  position: relative;
  content: '';
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  background-image: url(../images/icon/ic_search_40px.png);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 100%;
}

/* 五十音検索ボタン、キーワード検索ボタン共通 */
.consonant_list > .btn_consonant,
.btn_search {
  margin-right: 10px;
}

/* 非アクティブボタン、クリアボタン共通 */
.btn_consonant a,
.btn_clear a {
  background-color: #eaeaea;
  color: #315694;
}

/* 用語集全体 */
.glossary {
  margin-top: 40px;
}

/* 用語集項目名「用語」＆「概要」  */
.glossary_title {
  display: flex;
  padding: 0 20px 10px;
  border-bottom: #ADADAD 1px solid;
}

/* 用語集各項目名「用語」／「概要」 */
.glossary_title > .glossary_title_text {
  margin: 0;
  line-height: 1.0;
  font-size: 15px;
}

/* 用語リスト */
.glossary > .glossary_list {
  display: flex;
  padding: 0;
  flex-direction: column;
}

/* 用語＆概要部分（=写真以外のテキスト部分） */
.glossary_text_group {
  display: flex;
  width: 100%;
  padding: 20px;
  margin: 0 0 8px 0;
  border-bottom: #ADADAD 1px solid;
  justify-content: flex-start;
}

/* 画像部分 */
.glossary_image {
  width: calc(100% - 76% - 80px);
  object-fit: contain;
  margin-left: 80px;
}

/* 用語部分（用語＆ふりがな） */
.term {
  display: flex;
  flex-direction: column;
}

/* 用語 */
.term > .term_text {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

/* ふりがな */
.term_furigana {
  font-size: 12px;
}

/* 概要（概要文＆スペック）の幅設定 */
.glossary_text_group > .summary {
  width: calc(100% - 300px);
}

/* 用語の幅設定 */
.term {
  width: 300px;
  margin-right: 40px;
}

/* 項目名「用語」の幅設定 */
.glossary_title_text:first-child {
  width: calc(76% - (76% * 0.63) - 40px);
  margin-right: 40px;
}

/* 概要文 */
.summary > .summary_text {
  margin: 0;
  padding-bottom: 20px;
}

/* スペック */
p.summary_spec {
  display: flex;
  padding-left: 10px;
  margin-bottom: 0;
  border-left: #ADADAD 3px solid;
  font-size: 13px;
  background: #F7F7F7;
  align-items: center;
}

.glossy_hide {
  display: none;
}

@media screen and (max-width: 767px) {
  .search_keywords_group {
    flex-direction: column;
    align-items: center;
  }

  .search_keywords_group label {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    flex-direction: column;
  }

  .keyword_form {
    margin: 0;
    width: 100%;
  }

  .btn_search {
    margin-bottom: 10px;
  }

  .btn_search,
  .btn_clear {
    width: 100%;
    margin-right: 0;
  }

  .btn_search a,
  .btn_clear a {
    width: 100%;
    justify-content: center;
  }

  .consonant_list {
    justify-content: start;
  }

  .search_keywords_group > div {
    padding: 8px 0 0;
  }

  li.btn_consonant {
    width: calc(100% / 3 - 7px);
    margin: 0 10px 10px 0;
  }

  li.btn_consonant:nth-child(3n) {
    margin: 0 0 10px 0;
  }

  .btn_consonant a {
    width: 100%;
  }

  .glossary {
    margin-top: 20px;
  }

  .glossary_title {
    display: none;
  }

  .term,
  .glossary_text_group > .summary {
    width: 100%;
    margin-right: 0;
  }

  .term {
    margin-bottom: 10px;
  }

  .glossary_image {
    width: 100%;
    margin-left: 0px;
  }

  .glossary_text_group {
    flex-direction: column;
    width: 100%;
    padding: 20px 10px;
    margin-right: 0;
  }

  p.summary_spec {
    margin-bottom: 20px;
  }

}