
.ltx_title_document      { font-size:170%; text-align:center; margin:1em 0 1em 0; }
.ltx_dates,
.ltx_authors,
.ltx_role_author         { text-align:center; margin:1em 0 1em 0; }
.ltx_role_author .ltx_personname  { font-size: 120%; }
.ltx_date        { text-align:center; font-size: 120%; margin:1em 0 1em 0; }
.ltx_subtitle    { text-align:center; font-size: 120%; padding-left:0.2em; margin-left:-0.5em; }

.ltx_title_abstract      { text-align:center; font-size: 100%; font-weight:bold; }
.ltx_abstract { margin-left:4em; margin-right:4em; }

.ltx_appendix,
.ltx_part,   
.ltx_chapter,   
.ltx_section,   
.ltx_subsection,
.ltx_subsubsection { margin-top:1.5em; }
.ltx_paragraph,
.ltx_subparagraph   { margin-top:1.0em; }

.ltx_title_part          { font-size:250%; font-weight:bold; margin-bottom:1em; }
.ltx_title_appendix,
.ltx_title_bibliography,
.ltx_title_index,
.ltx_title_glossary,
.ltx_title_chapter       { font-size:250%; font-weight:bold; margin-bottom:1em; }
.ltx_title_appendix .ltx_tag,
.ltx_title_chapter .ltx_tag { display:block; font-size:90%; margin-bottom:0.5em; }
.ltx_title_section       { font-size:140%; font-weight:bold; margin-bottom:1em; }
.ltx_title_subsection    { font-size:120%; font-weight:bold; margin-bottom:1em; }
.ltx_title_subsubsection { font-size:100%; font-weight:bold; margin-bottom:1em; }

/* Paragraph & Subparagraph titles should be runin! */
.ltx_title_paragraph   { font-size:100%; font-weight:bold; display:inline;
                         margin-right:1em; }
.ltx_paragraph .ltx_title,
.ltx_paragraph .ltx_title + .ltx_para,
.ltx_paragraph .ltx_title + .ltx_para > .ltx_p { display:inline; }

.ltx_title_subparagraph  { font-size:100%; font-weight:bold; display:inline; 
                           margin-left:2em; margin-right:1em; }
.ltx_subparagraph .ltx_title,
.ltx_subparagraph .ltx_title + .ltx_para,
.ltx_subparagraph .ltx_title + .ltx_para > .ltx_p { display:inline; }

.ltx_figure  { text-align:center; margin:auto; margin:0.5em; }
.ltx_table   { text-align:center; margin:auto; margin:0.5em; }

/* experimental: flex model, to center short captions, justify long ones */
.ltx_table,
.ltx_figure { display:flex; flex-direction:column; align-items:center; }
.ltx_table .ltx_caption,
.ltx_figure .ltx_caption { text-align:justify; }

/* first p in para gets indented; , even 1st in section if marked "no" first child */
.ltx_para > .ltx_p:first-child,
section.ltx_pruned_first > .ltx_title + .ltx_para > .ltx_p,
section.ltx_indent_first > .ltx_title + .ltx_para > .ltx_p { text-indent:2em; }
/* except the initial in a section */
section > .ltx_title +.ltx_para > .ltx_p,
section > .ltx_title +.ltx_date +.ltx_para > .ltx_p {text-indent:0em; }

.ltx_itemize,
.ltx_enumerate { margin-left:1em; }

.ltx_theorem { margin-top:0.5em; margin-bottom:0.5em; }
.ltx_theorem .ltx_title { margin-bottom:0.1em; font-weight:normal; }
.ltx_theorem .ltx_title + .ltx_para,
.ltx_theorem .ltx_title + .ltx_para .ltx_p,
.ltx_theorem .ltx_title + .ltx_p  { margin-top:0em; }


/* 追加 */
/* 中央に寄せる */
	/* モバイル */
@media screen and (max-width: 800px){
div[class="ltx_page_main"]	{
	width: calc(100% - 6px);
	padding-left: 5px;
	padding-right: 5px;
}}
@media screen and (min-width: 799px){
div[class="ltx_page_main"]	{
	width: 740px;
	padding-left: 30px;
	padding-right: 30px;
}}
div[class="ltx_page_main"]	{
	margin-top: 30px;
	margin-bottom: 30px;
	margin-right: auto;
	margin-left: auto;
	border-width: 2px;
	border-style: none solid;
	text-align: left;
	background: white;
	border-color: red;
}
html	{
	background-color:#ffeded;
}
div.af_top{
	width: 800px;
	margin-right: auto;
	margin-left: auto;
}


