/* 全体の設定 */
a:hover {
  color: darkgray;
}

a {
  color: darkgray;
}

.question{
  color:darkgreen;
  cursor: pointer;
  font-weight: bold;
  
}

/*左に緑の見出し*/
.leftGreen {
  position: relative;
  padding: .25em 0 .5em .75em;
  border-left: 6px solid green;
}
.leftGreen::after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: '';
  width: 40%;
  height: 0;
  border-bottom: 1px solid #7d997c;
}

/*左にグレーの見出し*/
.leftGray {
  position: relative;
  padding: .25em 0 .5em .75em;
  border-left: 6px solid gray;
}
.leftGray::after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: '';
  width: 40%;
  height: 0;
  border-bottom: 1px solid #bbbbbb;
}


/* ポップアップ***************** */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  min-height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  }

.modal-content{
  background-color: white;
  width: 85%;
  min-height: 100%;
  margin:  auto;
}

/* タブ ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/
.area {
  margin: auto;
  flex-wrap: wrap;
  display: flex;
}

.tab_class {
  width: calc(100%/4);
  height: 50px;
  background-color: white;
  line-height: 50px;
  font-size: 15px;
  text-align: center;
  display: block;
  float: left;
  order: -1;
}

input[name="tab_name"] {
  display: none;
}

input:checked + .tab_class {
  background-color: #bde6d3;
  /* color: aliceblue; */
  color: darkgreen;
  /* border: 2px solid darkgreen; */
  border-radius: 15px 15px 0 0;
}

.tab_class:hover {
  /* background-color: #d1e7dd; */
  background-color: #dbebe4;
  border-radius: 15px 15px 0 0;
}

.content_class {
  display: none;
  width: 100%;
}

input:checked + .tab_class + .content_class {
  display: block;
}

/* モーダルの検索結果を質問ごとにモーダルで囲む */
.card {
  position: relative;
  display: inline-block;
  margin: 1.5em 0;
  padding: 20px 15px 15px 10px;
  max-width: 95%;
  color: gray;
  font-size: 20px;
  background: rgb(254, 254, 254);
  border: solid 3px gray;
  box-sizing: border-box;
  border-radius: 30px;
}

.card p {
  margin: 0;
  padding: 0;
}

/* タイトルのアンダーライン */
.underlineGray {
  position: relative;
  padding: 0.25em 0;
}

.underlineGray:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, gray, transparent);
  background: linear-gradient(to right, gray, transparent);
}

/* モーダル内の質問と答え */
.sheet {
  max-width: 95%;
  margin:50px 0 50px;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* セレクトなどの横幅設定 */
.custom-select {
  width: 300px;
  height: 30px;
}

/* 携帯の画面サイズに対するスタイル */
@media only screen and (max-width: 576px) {
  .custom-select {
      width: 100%;
  }
}