@charset "utf-8";
#theoremTop{
  width: 1200px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}
#theoremTop > h1{
  width: 100%;
  font-weight: normal;
  font-size: 3em;
  margin-bottom: 20px;
}
#theoremTop > div{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: visible;/*追従用*/
}
#theoremTop > div nav{
  /* 幅を固定しておくと右側がずれにくくなります */
  width: 200px;
}
#theoremTop > div nav a{
  display: block;
  border: hidden;
  width: 100%;
  height: auto;
  border-radius: 5px;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 5px;
  padding: 5px 0;
  background-color: #ddd;
  color: #000;
  text-decoration: none;
}
#theoremTop > div article{
  flex: 1; /* 残りのスペースを使って伸縮させる例 */
  height:auto;
  margin-left: 2vw;
}
@media screen and (max-width: 1199px) {
  #theoremTop{
    width: inherit;
    max-width: 100%;
  }
  #theoremTop > h1{
    font-size: 2.3em;
    position: relative;
  }
  #theoremTop > div{
    display: block;
    overflow: inherit;
  }
  #theoremTop > div nav{
    width: 300px;
  }
  #theoremTop > div article{
    margin-left: 0;
  }
}

/*==========
#ans >
===========*/
.tab-content{
  border: #ccc 1px solid;
  padding: 15px 1vw 10px;
  margin-bottom: 20px;
}
.tab-content h2{
  margin-bottom: 20px;
  border-bottom: #ccc 1px solid;
  padding-bottom: 15px;
  font-weight: normal;
}
.tab-content h3{
  font-weight: normal;
  margin-bottom: 10px;
}
.tab-content > div{
  margin-bottom: 20px;
}
.tab-content.active{display: block;}
.tab-content.inactive{display: none;}

.imgArea{
  display: flex;
  align-items: flex-start;
}
#ruleImageBox{
  padding: 10px 0;
  margin-right: 1.5vw;
  width: 65%;
}
#links{
  background-color: #eee;
  padding: 10px 1vw;
  width: 30%;
}
#links a{
  color: #000;
  text-decoration: none;
}
@media screen and (max-width: 1199px) {
.tab-content{
  padding: 15px 3vw;
}
.tab-content h2{
  font-size: 1.1rem;
}
.imgArea{
  flex-direction: column;
  align-items: center;
}
#ruleImageBox{
  margin-right: 0;
  width: 100%;
}
#ruleImageBox p{
  margin-bottom: 10px;
}
#ruleImageBox p img{
  width: 40%;
  height: auto;
}
#links{
  padding: 15px 3vw;
  width: 100%;

}
}
@media screen and (max-width: 500px) {
.tab-content{
  padding: 15px 4vw;
}
#ruleImageBox p img{
  width: inherit;
}
  }

/*=====================*/
#theorem a{color: #f00;}
/*
@media screen and (max-width: 1023px) {
}

@media screen and (max-width: 640px) {
}

@media print {
}*/
