@charset "utf-8";

html {
	font-size:18px;
    /* ページ内リンクがクリックされた時に、滑らかにスクロールする */
    scroll-behavior: smooth;
}


body{
    font-family: sans-serif;
    color: #333333;
	max-width:800px;
	margin:0 auto;
    line-height: 1.8;
    letter-spacing: 0.035rem;
}

#contents{
    margin:0 0.5rem;
}

#subject_name{
	float:left;
	margin:0;
}

header{
	padding-top:44px;
}

#sitename a{
	display:block;
	margin-top: 10px;
	background-color:#3C8C03;
    /*#33CC66;*/
	font-size:15px;
	font-weight: bold;
	color:#FFFFFF;
	text-align:center;
	text-decoration: none;
	
}


.unit-name {
    font-size:1.2rem;
    font-weight: 700;
    margin: 1rem 0;
    

}

#mokuji{
    padding: 0px;
}


#mokuji ol li{
    margin-bottom: 8px;
    margin-right: 8px;
    height: 72px;
    padding-top: 14px;
    padding-bottom: 0px;
    padding-left: 10px;
    background-color:#A9A9A9;
    border-radius:5px;
    box-shadow:5px 5px 5px #555;
}

#mokuji ol{
    padding-left: 0;
    list-style-position:inside;
}

#mokuji ol li a{
    text-decoration:none;
    line-height: 1.3;
    padding-top:0px; 
    padding-bottom:0px;
    color: #333333;
}

h1 > span{
	color:red;
}

h2{
	border-left: 4px solid #3C8C03;
	border-bottom: 2px solid #3C8C03;
	padding:0rem 0.5rem 0.1rem 0.5rem;
    margin:2rem 0 ;
    
	}

.example, .green{/*green*/
padding:4px 9px 4px 4px;
border-left: 5px solid #5cb85c;
background: #f1f9f1;
color: #3d8b3d;
border-radius: 0.25em;}

.def, .black {/*black*/
padding:4px 9px 4px 4px;
border-left: 4px solid #000000;
background: #dddddd;
color: #333333;
border-radius: 0.25em;}


.fs-1 {
    font-size: 2.5rem; /* 約 40px */
}

.fs-2 {
    font-size: 2rem; /* 約 32px */
}

.fs-3 {
    font-size: 1.75rem; /* 約 28px */
}

.fs-4 {
    font-size: 1.5rem; /* 約 24px */
}

.fs-5 {
    font-size: 1.25rem; /* 約 20px */
}

.fs-6 {
    font-size: 1rem; /* 約 16px */
}


.fw-normal {
    font-weight: 400; /* 通常 */
}

.fw-bold {
    font-weight: 700; /* 太字 */
}

.fw-bolder {
    font-weight: 800; /* さらに太字 */
}

.fw-lighter {
    font-weight: 300; /* さらに細い */
}

/* 特定の数値を指定することもできます */
.fw-100 {
    font-weight: 100; /* 非常に細い */
}

.fw-200 {
    font-weight: 200; /* 細い */
}

.fw-300 {
    font-weight: 300; /* やや細い */
}

/* など、最大900まで対応 */
.fw-500 {
    font-weight: 500; /* 標準よりやや太い */
}

.fw-600 {
    font-weight: 600; /* 中程度の太さ */
}

.fw-700 {
    font-weight: 700; /* 太字 */
}

.fw-800 {
    font-weight: 800; /* 非常に太い */
}

.fw-900 {
    font-weight: 900; /* 最大太さ */
}



.c-red{
    color:red;
}


.example-sentence {
    background-color: #B0E0E6;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 2rem;
    padding: 0.3rem;
}


.example-sentence > p {
    margin: 0.4rem;
}

.ind-1 {
    margin: 0.5rem 0.5rem 0.5rem 1.5rem ;
    padding: 0.3rem 0.5rem 0rem 0.5rem ;
    color: #4a4a4aff;
}

.word {
		display: inline-block;
		width: 320px;
		height: 100px;
}

pre { 
  /* 標準の折り返しを無効にし、pre要素のデフォルトの動作（改行を保持）を維持しつつ、
     長い行だけを折り返すように設定します。 */
    white-space: pre-wrap;

  /* 古いブラウザ向けの設定（ベンダープレフィックス）*/
  /* white-space: -moz-pre-wrap;
  white-space: -o-pre-wrap; */

  /* 行の途中での強制的な折り返しを許可する */
    word-wrap: break-word;
    font-size: 1.0rem;
}

/*pre{
    font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 110%;
    line-height: 1.4;
    letter-spacing: -0.10ex;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
}*/

.speaker{
    height: 1.7rem;
	width: 1.7rem;
    margin-right: 0.8rem;
    vertical-align: bottom;
}

.two-sentences {
    position: relative;
    height:170px;
    background-color: #ebebebff;
    border-radius: 0.5rem;  
    margin-bottom: 1rem; 
}

.initial_point,.final_point{
    color: red;
    padding: 3px;
    background-color: #CCCC99;
    border-radius: 5px;
}

.initial-point, .final-point {
    color: red;
    padding: 3px;
    background-color: #CCCC99;
}

.initial, .final {
    margin: 16px;
    padding: 0;
}

.first {
    position: absolute;
    z-index: 0;
    left: 0.8rem;
    top: 0;
}

canvas {
    z-index: 40;
    position: absolute;
    left: 0.8rem;
    top:   53px;
    /*background-color: green;*/
    margin: 0;
}

.second {
    position: absolute;
    z-index:10;
    left: 0.8rem;
    top: 84px;
}

.empty_space{
    height: 40px;
}

#pagetop{
    margin-top: 2rem;
    font-size: 1.2rem;
}

.button_random_select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.button_random_select > #input_and_button {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 1rem;
    height: 2.2rem;
}

.button_random_select input {
    display: block;
    width: 3.5rem;
    height: 2.3rem;
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.button_random_select button {
    display: block;
    height: 2.3rem;
    background-color: #45a049; 
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    border-radius: 5px;
    margin-left: 1rem;   
}

.button_random_select  button:hover {
  background-color: #4CAF50;
}



#exercise_li li{
	margin-bottom:40px;
}
p.ans{
    display: none;
}

p.ans > a{
    text-decoration: none;
}

#toc_of_this_unit_wrapper > p {
    font-size: 1.3rem;
    font-weight:600;
}

#toc_of_this_unit > ul {
    border: solid 2px #06a0f1;
    border-radius: 5px;
    padding: 0.5rem 1rem 0.5rem 2.3rem;
    position: relative;
}

#toc_of_this_unit > ul > li{
    line-height: 1.5;
    padding: 0.5em 0;
    list-style-type: none!important;
}


#toc_of_this_unit > ul > li >a {
    text-decoration:none; 
}

#toc_of_this_unit > ul > li:before{
    position: absolute;
    left : 0.5rem;/*左端からのアイコンまでの距離*/
    display: block;
    content: "";
    width:0.5rem;
    height: 0.5rem;
    border-top: 3px solid;
    border-right: 3px solid;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    color: #06a0f1;/*アイコン色*/
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}



/*---------------------様々なボタン
ただしモーダルレイヤー上のボタンは除く*/

/*文法事項の一番目の解説へ入るボタン*/
#btn_go_into_expl_1{
	float:right;
	margin-top: 0px;
	margin-bottom:40px;
	margin-right: 10px;
	padding:12px 4px 12px; /*上　左右　下*/
	
	font-size:16px;
	text-decoration:none;
	
	color: #fff;
	background-color: #49a9d4;
	border-radius:5px;
	box-shadow:2px 2px 2px #555;
	text-shadow:1px 1px #555;
}


/**練習問題へ進むボタン*/
#btn_go_to_ex{
	float:right;
	margin-bottom:40px;
	margin-right: 10px;
	padding:12px 4px 12px; /*上　左右　下*/
	font-size:16px;
	text-decoration:none;
	color: #fff;
	background-color: #49a9d4;
	border-radius:5px;
}

/**新バージョン練習問題へ進むボタン関連*/

#btn_to_ex_wrapper{
    display:flex;
    justify-content: end;
}

#btn_to_ex{
	margin-bottom:2.5rem;
	padding:0.7rem;
	text-decoration:none;
	color: #fff;
	background-color: #49a9d4;
	border-radius:0.4rem;
}


/*文法事項の解説へ戻るボタン*/
#btn_back_to_expl{
	width: 130px;
	position: fixed;
	bottom:18px;
    left: calc(50vw - 400px + 20px);
	font-size:0.8rem;
	text-decoration:none;
	margin-left: 5px;
	padding:5px 0px 5px; /*上　左右　下*/
	color:#fff;
	background-color: #008000;
	border-radius:5px;
    z-index: 998;

}

#btn_back_to_expl:hover {
    background-color: #2bb82b;
}

#btn_back_to_expl .left_arrow{
	float:left;
	font-weight:bold;
	margin-bottom:0;
}

.direction{
	margin-left: 20px;
	margin-bottom:0;
	margin-top:0;
	
}

/*ページの一番上へ戻るボタン*/
#btngttop{
    position: fixed;

/* ⭐️ コンテンツ幅（800px）の右端に合わせるための計算 ⭐️ */
    /* 1. 画面全体の幅の半分 (50vw) から、 */
    /* 2. コンテンツ幅の半分 (400px) を引く。 */
    /* これでコンテンツの左端に到達します。 */
    /* 3. そこにコンテンツの全幅 (800px) を足す。 */
    /* 4. その位置からボタンの右側の余白 (20px) を引く。 */
    right: calc(50vw - 400px + 20px);
    bottom:  18px;
	width: 130px;
    font-size:0.8rem;
	text-decoration:none;
	margin-right: 5px;
	padding:5px 2px 5px; /*上　左右　下*/
	color: #ffffff;
	background-color: #49a9d4;
	border-radius:5px;
    z-index: 999;
    /* マウスオーバー時の変化を滑らかにする */
    transition: background-color 0.3s;
    display: none; /* 初期状態では隠す */

}

/* 画面幅が800px未満のときは左右マージンがなくなるので右を固定 */
@media (max-width:800px){
  #btngttop {
    right:20px;
  }

    #btn_back_to_expl{
        left:20px;
    }
}



/* マウスオーバー時のデザイン */
#btngttop:hover {
    background-color: #5ccbf6;
}

#btngttop .upper_arrow{
	float:left;
	font-weight:bold;
	margin-bottom:0;
	margin-right:5px;
}



/*次の解説へ進むボタン*/
#btn_go_to_nxt_expl{
	float:right;
	text-decoration:none;
	font-size:16px;
	margin-right: 5px;
	padding:12px 6px 12px; /*上　左右　下*/
	color:#fff;
	background-color: #0033FF;border-radius:5px;
	box-shadow:2px 2px 2px #555;
	
}


/*今学んでいる文法の各項目へ行くボタン*/
#btn_to_each_subsec_of_this_sbj{
    clear:right;
    text-align: justify;
    padding-left: 0px;
}

#btn_to_each_subsec_of_this_sbj p{
    margin-bottom: 0px;
    margin-left: 8px;
    margin-right: 8px;
}

#btn_to_each_subsec_of_this_sbj ul{
    margin-top: 6px;
    padding-left: 0px;
    margin-right: 5px;
}

#btn_to_each_subsec_of_this_sbj li{
    display:inline-block ;
    width:60px;
    height: 44px;
    margin-left: 10px;
    margin-right: 0px;
    margin-bottom: 6px;
    background-color: #777777;
    border-style: solid;
    text-align: center;
}

#btn_to_each_subsec_of_this_sbj a{
    font-size: 80%;
    padding-left: 0px;
    padding-right: 0px;
    
    vertical-align: -45%;
    text-decoration: none;
    color: white;
}

.one-sentence {
    margin-bottom: 0.5rem;
}

.one-sentence > button{
    vertical-align: middle;
    background-color:transparent;
    border: none;
    cursor: pointer;
}


.bkg_knowledge{
display:inline-block ;
margin-right: 5px;
margin-left: 5px;
margin-top: 4px;
margin-bottom: 4px;
}


hr{
    margin-top: 40px;
    margin-bottom: 0px;
}


footer{
    padding: 20px 0 20px 0;
    font-size: 80%;
    margin-bottom: 3rem;
}

footer a{
    text-decoration: none;
}

#footer_menu{
    display: flex;
}


#footer_menu div{
    margin: 10px;

}

#copyright{
    text-align: center;
}


#reader-mode-button { 

 display: -moz-box !important; 

 visibility: visible !important;

}

