/*------------------------------------------------------
 	説明
/*------------------------------------------------------
	記事内の見出し、表、画像（サムネイルを除く）等に関するデザインを記述する。
*/


/*------------------------------------------------------
 	文章
/*------------------------------------------------------
*/

/* 共通 */
font.large {
	font-weight: bold;
}

b {
	color: var(--character-color);
}

mark {
	color: var(--character-color);
	background: linear-gradient(transparent 45%, var(--aqua) 5%);
	font-weight: bold;
}

mark.yellow {
	color: var(--character-color);
	background: linear-gradient(transparent 45%, #ee0 5%);
	font-weight: bold;
}

mark.green {
	color: var(--character-color);
	background: linear-gradient(transparent 45%, #0b0 5%);
	font-weight: bold;
}

strong {
	color: var(--magenta);
	font-weight: bold;
}

/* PC */
@media (min-width: 1200px) {

	font.large {
		font-size: 1.5rem;
	}
}

/* (992px <= width < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

	font.large {
		font-size: 1.2rem;
	}
}

/* SP */
/* (768px <= width < 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {

	font.large {
		font-size: 1.5rem;
	}
}

/* (576px <= width < 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {

	font.large {
		font-size: 1.4rem;
	}
}

/* (320px <= width < 576px) */
@media (min-width: 320px) and (max-width: 575.98px) {

	font.large {
		font-size: 1.35rem;
	}
}

/* (width < 320px) */
@media (max-width: 319.98px) {
	/* TODO */
}

/*------------------------------------------------------
	アイテム
/*------------------------------------------------------
*/

/* 共通 */
/* テーブル ------------------------------------------------------- */
table.transparent {
	width: auto;
	margin: 0;
	background-color: rgba(0, 0, 0, 0.0);
}

table.transparent td {
	height: 20px;
	padding-right: 10px;
}

table.t0 {
	width: 100%;
}

table.t0-small {
	width: 55%;
}

table.t0 td,
table.t0-small td {
	height: auto;
	background-color: var(--wall-color-2);
	border: 1px solid #aaa;
	text-align: center;
}

table.t0 td.field-name,
table.t0-small td.field-name {
	color: var(--character-color);
	background-color: var(--wall-color-3);
	font-weight: bold;
}

table.t1 {
	width: 100%;
}

table.t1-small {
	width: 55%;
}

table.t1 td,
table.t1-small td {
	height: auto;
	background-color: var(--wall-color-2);
	border: 1px solid #aaa;
	text-align: center;
}

table.t1 td.field-name,
table.t1-small td.field-name {
	color: var(--character-color);
	font-weight: bold;
	background-color: var(--sky);
	border-bottom: 2px solid var(--subtheme-color);
}

tr:nth-child(odd) td.nth {
	background-color: var(--wall-color-3);
}

td.even {
	width: 1%;	/* [note] 幅1%でtdが均等化 */
}

/* リスト ------------------------------------------------------- */
.focus {
	display: block;
	width: 100%;
	margin: 0;
	color: var(--theme-color);
	font-weight: bold;
	background-color: var(--wall-color-2);
	border: 2px dashed var(--turquoise);
	box-sizing: border-box;
}

.focus li {
	width: 100%;
}

.local-link {
	position: relative;
	display: block;
	width: 100%;
	background-color: var(--wall-color-2);
	border: 1px solid var(--theme-color);
	box-sizing: border-box;
  	/*overflow: hidden;
	text-overflow: ellipsis "[..]"; */
}

.local-link::before {
	content: '関 連';
	position: absolute;
	top: -15px;
	left: -4px;
	display: inline-block;
	color: #fff;
	border: 1px solid var(--turquoise);
	background-color: var(--turquoise);
	z-index: 2;
}

.local-link a {
	color: var(--theme-color);
	font-weight: bold;
}

/* div ------------------------------------------------------- */
.terminal {
	position: relative;
	width: 100%;
	min-height: 100px;
	color: #fff;
	background-color: #000;
	border: 1px solid #838383;
	box-sizing: border-box;
	overflow-x: scroll;
	white-space: nowrap;
}

.program-code {	
	/* ※ table.transparent とセットで使用 */
	position: relative;
	width: 100%;
	padding: 2px 2px 2px 2px;
	background-color: #fff;
	font-weight: bold;
	border: 1px solid #838383;
	box-sizing: border-box;
	overflow-x: scroll;
	white-space: nowrap;
}

.program-code span {
	color: #888;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.frame {
	display: flex;
	justify-content: center;
	position: relative;
	width: 100%;
	padding: 20% 5%;	/* 縦 横 */
	background-color: var(--wall-color);
	border: 3px solid var(--theme-color);
	box-sizing: border-box;
}

.circled,
.circled-red {
	display: inline-block;
	border-radius: 50%;
	text-align: center;
}

.circled {
	border: 1px solid var(--character-color);
}

.circled-red {
	color: var(--magenta);
	border: 1px solid var(--magenta);
}

/* 画像 ------------------------------------------------------- */
.featured-images {
	aspect-ratio: var(--golden-ratio) / 1;
}

.featured-images-org {
	height: auto;
	max-height: 600px;
}

.featured-images-16_9 {
	aspect-ratio: var(--aspect-16_9) / 1;	/* 16:9 */
}

.featured-images-amp {	
	aspect-ratio: var(--amp) / 1;	/* google 推奨アスペクト比 */
}

.featured-images-square {
	aspect-ratio: 1 / 1;
}

/* 画像加工 */
.fi-width-full {
	width: 100%;
}

.fi-width-half {
	width: 50%;
}

.fi-width-75 {
	width: 75%;
}

.fi-width-66 {
	width: 66.6%;
}

.fi-width-33 {
	width: 33.3%;
}

.fi-border {
	border: solid 1px var(--character-color-2);
}

/* PC */
@media (min-width: 1200px) {

	/* テーブル ------------------------------------------------------- */
	table.t0 td,
	table.t0-small td,
	table.t1 td {
		min-height: 20px;
		padding-top: 6px;
		padding-bottom: 3px;
	}

	/* リスト ------------------------------------------------------- */
	.focus {
		padding: 15px 0 0 30px;
	}

	.focus li {
		padding-bottom: 15px;
	}

	.local-link {
		padding: 15px 10px 15px 10px;
	}

	.local-link::before {
		height: 1.2rem;
		line-height: 1.4;
		font-size: 0.8rem;
		padding: 5px 7px 2px 7px;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .local-link::before {
		height: 1.2rem;
		line-height: 1.4;
		font-size: 0.8rem;
		padding: 5px 7px 5px 7px;
	}

	.local-link a:hover {
		color: var(--hover-color);
		transition: var(--hover-transition);
	}

	/* div ------------------------------------------------------- */
	.program-code {
		line-height: 1.5;
	}

	.circled,
	.circled-red {
		height: 1.2rem;
		width: 1.2rem;
		line-height: 1.3;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .circled,
	::-webkit-full-page-media, :future, :root .circled-red {
		height: 1.2rem;
		width: 1.2rem;
		line-height: 1;
	}
}

/* (992px <= width < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

	/* テーブル ------------------------------------------------------- */
	table.t0 td,
	table.t0-small td,
	table.t1 td {
		min-height: 16px;
		padding-top: 4.8px;
		padding-bottom: 2.4px;
	}

	/* リスト ------------------------------------------------------- */
	.focus {
		padding: 12px 0 0 24px;
	}

	.focus li {
		padding: 0 0 12px 0;
	}

	.local-link {
		padding: 12px 8px 12px 8px;
	}

	.local-link::before {
		height: 0.96rem;
		line-height: 1.4;
		padding: 4px 6px 1px 6px;
		font-size: 0.64rem;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .local-link::before {
		height: 0.96rem;
		line-height: 1.4;
		font-size: 0.64rem;
		padding: 4px 6px 4px 6px;
	}

	.local-link a:hover {
		color: var(--hover-color);
		transition: var(--hover-transition);
	}

	/* div ------------------------------------------------------- */
	.program-code {
		line-height: 1.5;
	}

	.circled,
	.circled-red {
		height: 0.96rem;
		width: 0.96rem;
		line-height: 1.25;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .circled,
	::-webkit-full-page-media, :future, :root .circled-red {
		height: 0.96rem;
		width: 0.96rem;
		line-height: 1;
	}
}

/* SP */
/* (768px <= width < 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {

	/* テーブル ------------------------------------------------------- */
	table.t0 td,
	table.t0-small td,
	table.t1 td {
		min-height: 20px;
		padding-top: 6px;
		padding-bottom: 3px;
	}

	/* リスト ------------------------------------------------------- */
	.focus {
		padding: 15px 0 0 30px;
	}

	.focus li {
		padding-bottom: 15px;
	}

	.local-link {
		padding: 15px 10px 15px 10px;
	}

	.local-link::before {
		height: 1.2rem;
		line-height: 1.4;
		font-size: 0.8rem;
		padding: 5px 7px 2px 7px;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .local-link::before {
		height: 1.2rem;
		line-height: 1.4;
		font-size: 0.8rem;
		padding: 5px 7px 5px 7px;
	}

	/* div ------------------------------------------------------- */
	.program-code {
		line-height: 1.6;
	}

	.circled,
	.circled-red {
		height: 1.2rem;
		width: 1.2rem;
		line-height: 1.3;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .circled,
	::-webkit-full-page-media, :future, :root .circled-red {
		height: 1.2rem;
		width: 1.2rem;
		line-height: 1;
	}
}

/* (576px <= width < 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
	
	/* テーブル ------------------------------------------------------- */
	table.transparent td {
		padding-right: 8px;
	}

	table.t0 td,
	table.t0-small td,
	table.t1 td {
		min-height: 20px;
		padding-top: 6px;
		padding-bottom: 3px;
		font-size: 0.8rem;
	}

	/* リスト ------------------------------------------------------- */
	.focus {
		padding: 15px 0 0 30px;
	}

	.focus li {
		padding-bottom: 15px;
	}

	.local-link {
		padding: 15px 10px 15px 10px;
	}

	.local-link::before {
		height: 1.2rem;
		line-height: 1.4;
		font-size: 0.8rem;
		padding: 5px 7px 2px 7px;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .local-link::before {
		height: 1.2rem;
		line-height: 1.4;
		font-size: 0.8rem;
		padding: 5px 7px 5px 7px;
	}

	/* div ------------------------------------------------------- */
	.program-code {
		line-height: 1.6;
	}

	.circled,
	.circled-red {
		height: 1.2rem;
		width: 1.2rem;
		line-height: 1.3;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .circled,
	::-webkit-full-page-media, :future, :root .circled-red {
		height: 1.2rem;
		width: 1.2rem;
		line-height: 1.1;
	}
}

/* (320px <= width < 576px) */
@media (min-width: 320px) and (max-width: 575.98px) {

	/* テーブル ------------------------------------------------------- */
	table.transparent td {
		padding-right: 8px;
	}

	table.t0 td,
	table.t0-small td,
	table.t1 td {
		padding: 8px 5px 5px 5px;
		min-height: 20px;
		max-height: 60px;
		font-size: 0.64rem;
	}

	/* リスト ------------------------------------------------------- */
	.focus {
		padding: 14px 0 0 27px;
	}

	.focus li {
		padding: 0 0 14px 0;
	}

	.local-link {
		padding: 14px 9px 14px 9px;
	}

	.local-link::before {
		height: 1rem;
		line-height: 1.4;
		font-size: 0.72rem;
		padding: 4.5px 6px 1.8px 6px;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .local-link::before {
		height: 1rem;
		line-height: 1.4;
		font-size: 0.72rem;
		padding: 4.5px 6px 4.5px 6px;
	}
	
	/* div ------------------------------------------------------- */
	.program-code {
		line-height: 1.6;
	}

	.circled,
	.circled-red {
		height: 1rem;
		width: 1rem;
		line-height: 1.15;
	}

	/* Safari */
	::-webkit-full-page-media, :future, :root .circled,
	::-webkit-full-page-media, :future, :root .circled-red {
		height: 1rem;
		width: 1rem;
		line-height: 1;
	}

	/* 画像 ------------------------------------------------------- */
	.fi-width-full,
	.fi-width-half,
	.fi-width-75,
	.fi-width-66 {
		width: 100%;
	}
}

/* (width < 320px) */
@media (max-width: 319.98px) {
	/* TODO */
}

/*------------------------------------------------------
	hタグ
/*------------------------------------------------------
*/

/* 共通 */
h1, 
h2, 
h3, 
h4,
h5 {
	color: var(--theme-color);
	font-weight: bold;
	box-sizing: border-box;
}

h1 {
	width: 100%;
	border-top: solid 2px var(--theme-color);
	border-bottom: solid 2px var(--theme-color);
}

h2 {
	border-left: solid 8px var(--theme-color);
	border-bottom: solid 2px #888;
}

h3 {
	border-left: 8px solid var(--theme-color);
}

h4 {
	border-bottom: 3px solid var(--subtheme-color);
}

h5 {
	border-top: solid 1px var(--theme-color);
	border-bottom: solid 1px var(--theme-color);
}

/* PC */
@media (min-width: 1200px) {

	h1,
	h2,
	h3,
	h4,
	h5 {
		margin-top: 5px;
		margin-bottom: 5px;
		padding-top: 4px;
		font-size: 1.4rem;
	}

	h1,
	h5 {
		padding-left: 2%;
	}

	h2,
	h3 {
		padding-left: 8px;
	}

	h1 {
		line-height: 60px;
	}

	h2 {
		line-height: 40px;
	}

	h4 {
		padding-left: 2px;
	}

	h5 {
		line-height: 40px;
	}
}

/* (992px <= width < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

	h1,
	h2,
	h3,
	h4,
	h5 {
		margin-top: 4px;
		margin-bottom: 4px;
		padding-top: 3px;
		font-size: 1.12rem;
	}

	h1,
	h5 {
		padding-left: 2%;
	}

	h2,
	h3 {
		padding-left: 8px;
	}

	h1 {
		line-height: 48px;
	}

	h2 {
		line-height: 32px;
	}

	h4 {
		padding-left: 2px;
	}

	h5 {
		line-height: 32px;
	}
}

/* SP */
/* (768px <= width < 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {

	h1,
	h2,
	h3,
	h4,
	h5 {
		margin-top: 5px;
		margin-bottom: 5px;
		padding-top: 4px;
		font-size: 1.4rem;
	}

	h1,
	h5 {
		padding-left: 2%;
	}

	h2,
	h3 {
		padding-left: 8px;
	}

	h1 {
		line-height: 60px;
	}

	h2 {
		line-height: 40px;
	}

	h4 {
		padding-left: 2px;
	}

	h5 {
		line-height: 40px;
	}
}

/* (320px <= width < 768px) */
@media (min-width: 320px) and (max-width: 767.98px) {

	h1,
	h2,
	h3,
	h4,
	h5 {
		margin-top: 4px;
		margin-bottom: 4px;
		padding-top: 3px;
		font-size: 1rem;
	}

	h1,
	h5 {
		padding-left: 2%;
	}

	h2,
	h3 {
		padding-left: 8px;
	}

	h1 {
		line-height: 48px;
	}

	h2 {
		line-height: 32px;
	}

	h4 {
		padding-left: 2px;
	}

	h5 {
		line-height: 32px;
	}
}

/* (width < 320px) */
@media (max-width: 319.98px) {
	/* TODO */
}

/*------------------------------------------------------
	目次
/*------------------------------------------------------
*/

/* 共通 */
.toc-container {
	position: relative;
	background-color: var(--wall-color-2);
	border: 1px solid var(--theme-color);
	border-radius: 2px 2px 2px 2px;		/* T R B L*/
	box-sizing: border-box;
}

ol.table-contents,
ol.table-contents li ol {
	width: 100%;
	margin-top: 5px;
	margin-bottom: 5px;
}

.table-contents a {
	color: var(--theme-color);
	font-weight: bold;
}

.toc-titles {
	display: block;
	width: 96%;
	margin-left: 2%;
	padding-top: 5px;
	padding-bottom: 5px;
	color: var(--theme-color);
	font-weight: bold;
	border-bottom: 3px solid var(--subtheme-color);
}

/* PC */
@media (min-width: 1200px) {

	.toc-container {
		width: 90%;
		margin-left: 5%;
	}

	ol.table-contents {
		padding: 0 0 0 5%;
		max-width: 95%;
	}

	ol.table-contents li ol {
		padding: 0 0 0 2.5%;
		max-width: 97.5%;
	}

	.table-contents a {
		transition: var(--hover-transition);
	}
	
	.table-contents a:hover {
		color: var(--hover-color);
	}

	.toc-titles {
		height: 35px;
		line-height: 40px;
		font-size: 1.5rem;
	}	
}

/* (992px <= width < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

	.toc-container {
		width: 90%;
		margin-left: 5%;
	}

	ol.table-contents {
		padding: 0 0 0 5%;
		max-width: 95%;
	}

	ol.table-contents li ol {
		padding: 0 0 0 2.5%;
		max-width: 97.5%;
	}

	.table-contents a {
		transition: var(--hover-transition);
	}
	
	.table-contents a:hover {
		color: var(--hover-color);
	}

	.toc-titles {
		height: 35px;
		line-height: 40px;
		font-size: 1.5rem;
	}	
}

/* SP */
/* (768px <= width < 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {

	.toc-container {
		width: 100%;
	}

	ol.table-contents {
		padding: 0 0 0 5%;
		max-width: 95%;
	}

	ol.table-contents li ol {
		padding: 0 0 0 2.5%;
		max-width: 97.5%;
	}

	.toc-titles {
		height: 35px;
		line-height: 40px;
		font-size: 1.5rem;
	}	
}

/* (576px <= width < 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {

	.toc-container {
		width: 100%;
	}

	ol.table-contents {
		padding: 0 0 0 5%;
		max-width: 95%;
	}

	ol.table-contents ol {
		padding: 0 0 0 2.5%;
		max-width: 97.5%;
	}

	.toc-titles {
		height: 30px;
		line-height: 31px;
		font-size: 1.2rem;
	}
}

/* (320px <= width < 576px) */
@media (min-width: 320px) and (max-width: 575.98px) {

	.toc-container {
		width: 100%;
	}

	ol.table-contents {
		padding: 0 0 0 8%;
		max-width: 92%;
	}

	ol.table-contents ol {
		padding: 0 0 0 4%;
		max-width: 96%;
	}

	.toc-titles {
		height: 30px;
		line-height: 31px;
		font-size: 1.2rem;
	}
}

/* (width < 320px) */
@media (max-width: 319.98px) {
	/* TODO */
}

/*------------------------------------------------------
	引用
/*------------------------------------------------------
*/

/* 共通 */
blockquote {
	display: inline-block;
	position: relative;
	background-color: var(--wall-color-2);
	color: var(--character-color-2);
	font-style: italic;
	border-left: 4px solid var(--sky);
	box-sizing: border-box;
	box-shadow: 0 2px 4px var(--shadow);
}

blockquote:before {
	content: '“';
	display: inline-block;
	position: absolute;
	top: 0;
	left: 3px;
	line-height: 1;
	vertical-align: middle;
	color: var(--sky);
	font-size: 5rem;
	font-family: sans-serif;
}

blockquote cite {
	display: block;
	text-align: left;
	color: var(--character-color-2);
}

blockquote cite a {
	color: var(--character-color-2);
	transition: var(--hover-transition);
}

/* PC */
@media (min-width: 1200px) {

	blockquote {
		padding: 35px 15px 10px 15px;
		font-size: 1rem;
	}

	blockquote cite {
		font-size: 0.8rem;
	}

	blockquote cite a:hover {
		color: var(--hover-color);
		transition: var(--hover-transition);
	}
}

/* (992px <= width < 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

	blockquote {
		padding: 28px 12px 8px 12px;
		font-size: 0.8rem;
	}

	blockquote cite {
		font-size: 0.64rem;
	}

	blockquote cite a:hover {
		color: var(--hover-color);
		transition: var(--hover-transition);
	}
}

/* SP */
/* (768px <= width < 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {

	blockquote {
		padding: 35px 15px 10px 15px;
		font-size: 1rem;
	}

	blockquote cite {
		font-size: 0.8rem;
	}
}

/* (576px <= width < 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {

	blockquote {
		padding: 28px 12px 8px 12px;
		font-size: 0.8rem;
	}

	blockquote cite {
		font-size: 0.64rem;
	}
}

/* (320px <= width < 576px) */
@media (min-width: 320px) and (max-width: 575.98px) {

	blockquote {
		width: 100%;
		margin: 0;
		padding: 28px 12px 8px 12px;
		font-size: 0.8rem;
	}

	blockquote cite {
		font-size: 0.64rem;
	}
}

/* (width < 320px) */
@media (max-width: 319.98px) {
	/* TODO */
}
