@charset "UTF-8";

/*ワープロAで、「▼作成例」をクリックすると画面下に作成例表示*/
#ans-box{
  width: 100%;
  height: 200px;
  overflow: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  resize: vertical;
  background: #fff;
  display: none;
  z-index: 5;
  border-top: 2px solid #000;
}
.ans-img{
  position: absolute;
  width: 100%;
}
.ans-title{
  position: relative;
  top: 0;
  background: #fcd271;
  margin: 0;
  padding: 3px 0 3px 0.5em;
  z-index: 5;
}
.ans-close{
  position: absolute;
  top: 4px;
  right: 0.5em;
  cursor: pointer;
  font-size: 1.6rem !important;
}
 i {
  font-family: 'Material Icons' !important;
}.material-icons {
  display: inline-flex !important;
  vertical-align: middle !important;
}


/*課題の最下部にある文章*/
.next {
  padding: 0 20px 60px 20px;
}
header, .kadai-bar, .setsumon-bar {
  min-width: auto;
}
/*ルビ
----------------------------------------*/
.kadai-bar h3 ruby, .kadai-bar h3 rt, header h3 ruby, header h3 rt{
  color: #fff;
}
rt {
  font-size: 0.6rem;
  padding: 0;
  position: relative;
  margin: 0;
}
.ruby rt{
  top: -0.1em;
  transform: translateY(-0.1em);
  margin-top: -10px;
}
/*headerとかの一部分の位置調整*/
.ruby rt, .head-ruby rt{display: none;}
.ruby[data-ruby], .head-ruby[data-ruby] {position:relative;}
.ruby[data-ruby]::before, .head-ruby[data-ruby]::before {
  content: attr(data-ruby);
  position:absolute;
  left:-2em;
  top:-1.2em;
  right:-2em;
  text-align:center;
  font-size:.6em;
}


/*共通部分
----------------------------------------*/
*{
  color: #1d191a;
  padding: 0;
  margin: 0;
  text-decoration:none; /*文字の下線-無し*/
  font-family: "Meiryo"!important;
}
html {
  font-size: 105%;
  scroll-behavior: smooth;
}
/*#defaultはタイマーの文字*/
p:not(#default) {
  margin: 15px 10px;
  font-size: 105%;
  line-height: 1.8rem;
  font-family: "MS PGothic";

}
img {
  display: block;
  margin: 15px;
  max-width: 95%;
}
.min-img{min-width: 30%;}
header,label, li, h3, #timer-body{/*ドラッグできないようにする*/
  user-select: none;
}
header {
  position: sticky;
  top: 0;
  right: 0;
  background-color: #f0edec;
  z-index: 1000;/*表示の優先度*/
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .5);
  width: 100%;
}
header h3 {
  background: linear-gradient(90deg, rgba(236,87,31,1) 0%, rgba(231,135,142,1) 40%, rgba(252,210,113,1) 100%);
  color: #fff;
}
/*▼トップページのところの黄色い部分*/
.menu {
  padding: 0;
  display: flex;
  list-style: none;
  background-color: #FCD271;
  z-index: 100;
}
.menu ul{
  list-style: none;
  padding: 0;
}
.menu li {
  position: relative;
}
.menu li a {
  display: block;
  width: 150px;
  font-size: 14px;
  padding: 10px 0;
  background-color: #FCD271;
  box-sizing: border-box;
  font-weight: bold;
}
/*プルダウンメニュー*/
.menu li li a{
  background-color: #FCD271;
  padding-left: 15px;
}
.menu > li:hover > a {/*layer-1*/
  color: #D13A07;
}
.menu > li:hover > a ruby, .menu > li:hover > a rt {/*layer-1*/
  color: #D13A07;
}
.menu > li li:hover > a {/*layer-2*/
  color: #fff;
  background-color: #d21c46;
}
.menu > li li:hover > a ruby, .menu > li li:hover > a rt {
  color: #fff;
}
.menu li ul {
  top: 100%;
  left: -0;
  position: absolute;
  width: 100%;
  z-index: 1000;
}
.menu li ul li {
  overflow: hidden;
  visibility: hidden;
  height: 0;
}
.menu li:hover > ul > li {
  overflow: visible;
  visibility: visible;
  height: 40px;
}
.menu-q-select li{
  margin: 10px 0;
  border: 2px solid #403134;
  width: 54px;
  text-align: center;
  padding: 3px 0;
  display: inline-block;
}
.menu-q-select li:hover{
  background-color: #d21c46;
  border-color: #d21c46;
}
.menu-q-select li:hover a, .menu-q-select li:hover ruby, .menu-q-select li:hover rt {
  color: #fff;
}

/*サイズ変更・色反転
----------------------------------------*/
.change-button label{
  padding: 6px 6px 5px 6px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.font-size {
  background-color: #ec571f;
}
.blue {background-color: blue;}
.black {background-color: #1a1a1a;}
.white{background-color: #f0edec;}
.font-size i, .blue i {color: #fff;}
.black i {color: yellow;}

.change-button label:hover{
  opacity: 0.7;
}
.change-button input{
  display: none;
}

.change-button{
  width: 250px;
  display:  flex;
  justify-content: space-between;
  position: fixed;
  /*position: absolute;*/

  top: 110px;
  right: 8px;
}
.menu-q-select{position: relative;}


/*タイマー
----------------------------------------*/
#timer-body {
  width:150px;
  height:90px;
  border-radius: 10px;
  float: right;
  background-color: #1993c0;
  position:fixed;
  top: 3px;
  right: 5px;
}
#default {
  background-color:#f9f9f9;
  border-radius: 10px;
  text-align:center;
  font-size: 30px;
  font-weight: bold;
  width: 120px;
  margin: 5px auto 2px auto;
  border: 2px solid #f9f9f9;
}
#timer-body button {
  margin:7px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}
#timer-body i {
  color: #FFFFFF;
}

/*キャプションの文章
----------------------------------------*/
.caption h2{
  margin: 20px;
  text-align: center;
}
.caption p:not(.cap-small p, .caption-5 p, .not-indent){
  text-indent: -3rem;
  padding-left: 3rem;
}
.caption div:not(.cap-shikaku){
  padding-left: 3rem;
}
.caption-2 p {
  text-indent: -4rem;
  padding-left: 4rem;
}
.caption-5 p{
  text-indent: -2rem;
  padding-left: 2rem;
}

.cap-shikaku{
  border: 1px solid;
  margin: 0px 40px 0px 3rem;
}
.cap-shikaku p{
  margin: 5px;
}
.cap-small{
  font-size: small;
}
.cap-small p{
  text-indent: -1rem;
  padding-left: 1rem;

}
b{
  text-decoration:underline;/*下線を引く*/
  text-decoration-style:wavy;/*下線を波線で表示*/
  line-height: 1.8rem;
}

/*キャプションの表
----------------------------------------*/
table{
  width: 750px;
  margin:  0 auto 50px auto;
  min-width: 90vw;
  max-width: 90vw;
}
table , td, th {
  border: 1px solid #403134;
  border-collapse: collapse;
}
td, th {
  padding: 2px 5px;
}
th {background: #bebebe;}
.t-body1 {width: 15%;}
.t-body2 {width: 27%;}

.wordA-table{/*ワードAのテーブル、中央揃え*/
  text-align: center;
}


.setsumon-p {/*設問*/
  margin: 5px 0;
  text-align: center;
  padding: 3px 11px;
  border-radius: 0;
}
.maru li {
  list-style: none;
  display: inline-block;
  margin: 0 0 5px;
}
.maru li a {
  display: block;
  border-radius: 100%;
  background-color: #ccc2bd;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 35px;
  border: 2px solid #f0edec;
}
.maru a:hover{
  color: #fff;
  background-color: #d21c46;
}
.kadai-bar h2{
  top: 5px;
}
.kadai-bar h3{
  padding: 5px;
  background-color: #1993c0;
  color: #fff;
  position: relative;
}
.setsumon-bar h3{
  padding: 8px 10px;
  background-color: #98ddf6;
  position: relative;
}
.setsumon-bar,.kadai-bar:not(#word-A .kadai-bar){
  margin-bottom: 30px;
}
[id^="check"]{
  transform: scale(1.5);
  margin-left: 3px;
  vertical-align: 2px;
  margin-right: 5px;
}
.block {
  float: right;
  border: 2px solid #037aa5;
  background-color: #1993c0;
  color: #ffffff;
  padding: 5px;
  border-radius: 5%;
  position: absolute;
  top: 1px;

  position: absolute;
  right: 10px;
}
.block:hover{
  background-color: #d21c46;
  border-color: #b11237;
}

/*-----ブックマークのやつ-----*/
.hata {
 margin-left: 15px;
}
.hata i {
  font-size: 2rem;
  line-height: 1rem;
}
.hata input[type=checkbox] {
  display: none;
}

/*タブのところ
----------------------------------------*/
/* アクティブなタブはデザインを変えて選択中であることが解るようにする */
/* ここのクラス同士の間に空白をいれてはいけない（戒め） */
.tab-item.active {
  background-color: #d21c46;
  border-color: #d21c46;
}
.tab-item.active a, .tab-item.active ruby, .tab-item.active rt{
  color: #ffffff;
  /*background-color: none;*/
}
/* コンテンツは原則非表示 */
.tab-content, .tab-maru{
  display: none;
}
/* .showがついたコンテンツのみ表示 */
.show {
  display: block;
}
/*headerの部分と被らないようにするため excel用 */
#excel .kadai-bar, #excel .setsumon-bar, #excel .tab-box{
  padding-top: 201px;
  margin-top: -201px;
}
[id^="word"] .kadai-bar, [id^="word"] .setsumon-bar, [id^="word"] .tab-box{
  padding-top: 270px;
  margin-top: -270px;
}

/*トップページ
----------------------------------------*/
.select{
  display: flex;
  flex-direction: column;
  margin: 10px;
}
.select ruby, .select rt {
  color: #fff;
}
[class^="item"] {
  font-size: 200%;
  font-weight: 1000;
  line-height: 52px;
  transition: none;
  padding: 10px;
  margin: 15px auto;
  width: 500px;
  text-align: center;
  border-radius: 100vh;
  max-width: 95%;
}
[class^="item"], [class^="item"] a, [class^="item"] i {
  color: #fff;
}
.item1 a{
  display: block;
}
[class^="item"]:active {
  box-shadow: none;
  transform: translateY(10px);
}

.item1 {background-color: #19b691;
  box-shadow: 0 10px 0 #206e79;}
.item2 {background-color: #4ea3c2;
 box-shadow: 0 10px 0 #396392;}
.item3 {background-color: #d45674;
  box-shadow: 0 10px 0 #ad4444;}
.item4 {
  background-color: #272727;
  box-shadow: 0 10px 0 #696969;
  padding-top: 20px;
}
.item5 {
  background-color: rgba(236,87,31,1);
  box-shadow: 0 10px 0 rgba(175, 43, 43, 0.842);
  padding-top: 20px;
}


/*レスポンシブ
----------------------------------------*/
@media screen and (max-width: 400px) {
html, b{font-size: 16px !important;}
h2, .setsumon-bar label, .kadai-bar h3, .block{font-size: 20px !important;}
header h3{
  font-size: 18px;
  background: #ec571f;
  padding-left: 5px;
}
[class^="item"]{
  font-size: 160%;
  line-height: 2.3rem;
  margin: 12px auto;
}
.change-button i{font-size: 24px !important;}
#wordB .ruby[data-ruby]::before{
  top: -1.2em !important;
  font-size: 0.55em !important;
}
#wordB p{line-height: 2.4rem !important;}

.ruby[data-ruby]::before{
  top: -1.4em !important;
  font-size: 0.55em !important;
}
.select ruby[data-ruby]::before{
  top: -1.5rem !important;
}
p{
  font-size: 100% !important;
  line-height: 1.5em !important;
  margin: 10px !important;
}
table{max-width: 93vw;}
table, table b{font-size: 12px !important;}
.t-body2 {width: 25%;}
.menu-q-select li{
  padding: 2px 0;
  margin: 7px 0;
  width: 50px;
}
.caption div:not(.cap-shikaku){padding-left: 1rem;}
.select .change-button{
  position: initial !important;
  margin: 15px auto;
}
.select .change-button label{
  padding: 6px 6px 5px 6px;
}
#word .change-button, #excel .change-button{
  width: 120px;
  right: 5px;
  top: 40px;
}
#wordB .change-button{
  width: 120px;
  right: 5px;
  top: 71px;
}
#wordB .menu li a{width: 130px;}
.caption h2{margin: 10px 5px;}
.change-button .font-size , #timer-body {display: none;}
.maru li a{/*課題１とかの四角*/
  width: 27px;
  height: 27px;
  line-height: 28px;
}
.setsumon-p{display: none !important;}
.menu li a{/*黄色の▼トップページの立幅*/
  width: 120px;
  padding: 12px 0;
}
.setsumon-bar h3{padding: 4px 10px;}
.hata i{
  font-size: 35px !important;
  vertical-align: -11px !important;
}
.block{
  top: 0;
  padding: 3px;
}
.ans-close{top: 0px;}
.cap-shikaku{margin: 0px 10px;}

/*headerの部分と被らないようにするため excel用 */
#excel .kadai-bar, #excel .setsumon-bar, #excel .tab-box{
  padding-top: 180px;
  margin-top: -180px;
}
[id^="word"] .kadai-bar, [id^="word"] .setsumon-bar, [id^="word"] .tab-box{
  padding-top: 250px;
  margin-top: -250px;

}

}
