/* 中央枠 */
.wrap {
    width: 600px;
    margin:10px auto 0 auto;
    min-height: 100vh;
    padding: 20px;
    font-family:
      "Yu Gothic",
      "Hiragino Kaku Gothic ProN",
      "Meiryo",
      "Noto Sans JP",
      sans-serif;
    font-size:larger;
    font-weight:bold;
    line-height:1.3;
}

.page1 {
    background-color:whitesmoke;
    width: 600px;
    padding:20px 20px 20px 20px;
    margin-bottom:20px;
}

.page2 {
    background-color:whitesmoke;
    width: 600px;
    padding:10px 20px 40px 20px;
    margin-bottom:20px;
}

/* 章タイトル */
.chapter{
    font-size:x-large;
    font-weight:bold;
    margin-bottom:2px;
}

/* 節タイトル */
.section{
    margin-top:10px;
    font-size:larger;
    font-weight:bold;
    text-decoration: underline;
} 

/* 話題枠 */
.topic{
    width:600px;
}

/* 左問題枠 */
.left{
    float:left;
    width:440px;
}

/* 右答枠 */
.right{
    float:right;
    width:155px;
    text-align:right;
}

/* 問題番号枠 */
.number{
    float:left;
    width:25px;
}

/* 問題本文枠 */
.problem{
    float:left;
    width:425px;
    padding-right:8px;
}

/* 答えの文字幅 */
.answer1{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer2{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer3{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer4{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer5{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer6{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer7{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer8{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

.answer9{
    display:inline-block;
    width:6em;
    text-align:left;
         padding-left:2px;
    cursor:pointer;
    user-select:none;
    white-space:pre;
}

/* 答えの色：赤 */
.red{
    color:red;
}

/* 答えの色：青 */
.blue{
    color:blue;
}

/* 非表示 */
.hidden{
    color:transparent;
}

/* コマンドボタン */
button{
    display: flex;
    justify-content: center; /* 横方向中央 */
    align-items: center;     /* 縦方向中央 */
    line-height: 1;
    font-size:large;
    height:25px;
    padding-top:3px;
    padding-right:6px;
    margin-bottom:20px;
/*
    margin-top:8px;
    margin-left:15px;
    font-size:larger;
    font-weight:normal;
    padding:2px 8px 0px 8px;
*/

}

/* リンクデザイン */
a{
    color:black;
    text-decoration:none;
}

a:hover{
    color:yellow;
    background-color:#000099;
    text-decoration: none;
  }

/* ポップアップ画面 */
.sr_wrap{
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 10px;
  text-align: center;
}

.sr_wrap:not(:target){
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.sr_wrap:target{
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility .4s;
}

.sr_wrap::after{
  display: inline-block;
  height: 100%;
  margin-left: -.05em;
  vertical-align: middle;
  content: "";
}

.sr_wrap .sr_board{
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 70%;
  max-width: 260px;
  padding: 15px 10px 10px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, .6);
  vertical-align: middle;
}

.sr_wrap .sr_board .sr_content{
  max-height: 20vh;
  overflow-y: auto;
  text-align: left;
}

.sr_overlay{
  z-index: 10;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
}

.sr_wrap .sr_close{
  z-index: 20;
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  color: #95979c !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
}

.sr_wrap .sr_close:hover{
  color: #2b2e38 !important;
}

/*----------------------------------------------------*/
