@charset "utf-8";

@import url(https://fonts.googleapis.com/css?family=Lobster+Two&display=swap); /* for .content-summary, .summary */

/* 新エディタでの記事汎用スタイル */

.article *, .article *:after, .article *:before {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.article img,.article iframe,.article video,.article audio {
	max-width: 100%;
}

.article hr {
	display:block;
	border-top-style:solid;
	border-top-width:1px;
	border-left-style:none;
	border-right-style:none;
	border-bottom-style:none;
	height:0;
	margin:0.5em 0;
}

/***********************************************************************
 * for generic styling
 ************************************************************************/

.artcile {
	line-height:1.6;
}

.article:after {
	display:block;
	position:relative;
	content:'';
	width:100%;
	height:0;
	overflow:hidden;
	visibility:hidden;
	
	clear:both;
}

.article ol, .article ul {
	line-height:1.4;
}

.article .article-heading,
.article .article-subheading,
.article h3, .article h4 {
	line-height:1.25;
}

.article > p {
	margin-top:1.6em;
	margin-bottom:1.6em;
}

.article .description .container {
	position:relative;
	margin:0;
	padding:0;
	width:auto;
	height:100%;
	max-width:none;
	min-width:0;
	max-height:none;
	min-height:0;
}

.article cite {
	font-style:italic;
}

.article cite > a {
	color:inherit;
	text-decoration:none;
	display:block;
}

.article cite > a:hover {
	text-decoration:underline;
}


/*画像引用関連の設定*/
.article figure {
	margin: 2em 0;
}

.article figure:first-child,
.article .article-cover + figure {
	margin-top:15px;
}

.article figure p {
	margin: 0;
}

.article figure img {
	margin: 0 0 0 0;
	display:block;
}

.article figcaption {
	/* color: #333; */
	-moz-opacity:0.5;
	opacity:0.5;
	font-size: 90%;
	font-style: italic;
	margin: 5px 0 10px 0;
	z-index: 3 !important;
	line-height:1.3;
}

.article figure.hide-figcaption figcaption {
	display:none;
}

.article figcaption p {
	margin-top:0.5em;
	margin-bottom:0;
}

.article figcaption p:last-child {
	margin-bottom:0.5em;
}

.article figcaption p + cite {
	display:block;
}

.article cite > a:empty,
.article cite:empty,
.article figcaption > p:empty {
	display:none;
}

.article .video-box {
	position: relative;
}

.article .video-box > .video-thumb {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.article .video-box > .video-embed {
	position: relative;
	z-index: 2;
}

.article .video-box > .video-thumb > img,
.article .video-box > .video-embed > iframe {
	display: block;
	width: 100%;
}


/*** 画像 ***/

.article figure:not(.img-small) .image-box {}

.article figure.img-small > a,
.article figure.img-small > .image-box {
	width:38%;
	
	margin:0;
	
	display:inline-block;
	position:relative;
	vertical-align:bottom;
}

.article figure.img-small:after {
	content:"";
	display:block;
	height:0;
}

.article figure.img-small .image-box > img {
	margin:0;
}

/*
.article figure.img-small > figcaption {
	display:inline-block;
}
*/

.article figure.img-small > figcaption {
	width:62%;
	/* width: calc( 62% - 10px ); */
	vertical-align:bottom;
	display:inline-block;
	
	padding-left:.75em;
	margin-bottom:0;
}
/*
.article figure.img-small > figcaption > p:last-of-type {
	margin-bottom:0;
	padding-bottom:0;
}
*/

.article figure.img-small > figcaption > cite {
	margin-top: .5em;
}

.article figure > figcaption > cite > a:emtpy { display:none; }
.article figure > figcaption > p:emtpy { display:none; }

/*** サイトカード ***/

.article .cite-box {
	margin-top:1em;
	margin-bottom:1em;
	position:relative;
}

.article .cite-box > a {
	display: block;
	color: inherit;
	text-decoration: none;
	color: #888!important;
	background:white!important;
	border: 1px solid #ccc;
	
	position:relative;
}

.article .cite-box > a:after {
	clear: both;
	content: "";
	display: block;
	position: relative;
	width: 100%;
	height: 0;
	visibility: hidden;
}

.article .cite-box .thumb {
	position: relative;
	width: 38%;
	margin-right: -38%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	float: left;
	
	z-index:2;
}

.article .cite-box:not(.thumb-full) .thumb > img {
	position:absolute;
	top:0;  left:0; /* right:0; bottom:0; */
	max-width:100%;
	max-height:100%;
	width:100%;
	height:100%;
	-moz-opacity:0;
	opacity:0;
}
.article .cite-box.thumb-full .thumb > img {
	width:100%;
	display:block;
	margin:0;
}

.article .cite-box:not(.thumb-full) .thumb:before {
	content: '';
	display: block;
	padding-top: 100%;
}

.article .cite-box .thumb + .description {
	padding-left: 38%;
}

.article .cite-box:not(.text-full) .thumb + .description {
	position:absolute;
	top:0;
	left:0;
	bottom:0;
	right:0;
	overflow:hidden;
	z-index:1;
}

.article .cite-box .description {
	font-size:80%;
	line-height:1.5;
}

.article .cite-box .description > .container {
	padding: 15px;
	/* position:relative; */
	
	height:103%; height:calc(100% + 1px);
}

.article .cite-box .description > .container > h4:first-child {
	margin-top:0;
	font-size:125%;
}

@media (max-width:767px) {
	.article .cite-box .description > .container {
		padding:7px;
	}
	.article .cite-box .description > .container > h4:first-child {
		font-size:115%;
		margin-bottom:0.5em;
	}
	.article .cite-box .description > .container > p {
		margin-top:0.5em;
		margin-bottom:0.5em;
	}
}

.article .cite-box .description cite {
	font-style:italic;
	
	padding:5px 15px;
	
	position:absolute;
	bottom:1px;
	left:1px;
	right:1px;
	
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	text-align:right;
}
.article .cite-box:not(.text-full) .description cite {
	background:white;
	background: -moz-linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
	background: -webkit-linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
	background: -ms-linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
	background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
	padding-top: 2em;
	
}

/*文章引用関連の設定*/

.article .quotebox {
	position: relative;
	margin: 0.5em 0 2em 0;
	padding: 1em;
	background-color: #eee;
	color:#666;
	z-index: 1;
	overflow:hidden;
}

.article .quotebox blockquote {
	margin: 0;
	z-index:2;
}

.article .quotebox blockquote:before,
.article .quotebox blockquote:after {
	font-size: 1000%;
	font-family: 'Times New Roman', "ＭＳ Ｐゴシック", sans-serif;
	color: #FBFBFB;
	position: absolute;
	z-index: 0;
	height:0;
}

.article .quotebox blockquote:before {
	content: "“";
	line-height: 0.8;
	left: 5px;
	top: 5px;
}
.article .quotebox blockquote:after {
	content: "”";
	line-height: 0.15;
	right: 5px;
	bottom: 5px;
}

.article blockquote > h4 {
	position: relative;
	padding: 0 0.5em 0 1em;
	z-index: 3;
}

.article blockquote > p {
	position: relative;
	padding: 0 0.5em 0 1em;
	z-index: 3;
	font-size: 95%;
}

.article blockquote > footer {
	/* color: #333; */
	-moz-opacity:0.9;
	opacity:0.9;
	font-size: 90%;
	font-style: italic;
	padding: 0 1em;
	margin: 0;
	z-index:3;
}

.article > .article-heading,
.article > h3:not(.article-subheading) {
	margin:32px 0 20px 0;
	padding:5px 8px;
	border-left-style:solid;
	border-left-width:8px;
	border-bottom-style:dotted;
	border-bottom-width:1px;
}

.article > .article-subheading,
.article > h4:not(.article-subheading) {
	margin:16px 0 8px 0;
}

/* overwrite reset.css for backward compatible : h3,h4 -> h2.article-heading, h3.article-subheading */
.article > .article-heading { font-size:110%; }
.article > .article-subheading { font-size:110%; }

@media (max-width:767px) {
	.article .quotebox {
		padding: 0.5em;
		margin: 0.5em 0 1.5em 0;
	}
	.article blockquote > h4,
	.article blockquote > p,
	.article blockquote > footer {
		padding: 0 0.5em 0 0.5em;
	}
}

.content-summary .font-big,
.article .font-big { font-size:150%; }
.content-summary .font-small,
.article .font-small { font-size:66.666666%; }

.content-summary,
.article > p.summary {
	margin-bottom:3.2em;
	margin-top:1em;
}

.content-summary:before,
.article > p.summary:before,
.article > .toc-place:before {
	content:"Summary";
	display:block;
	font-size:85%;
	font-style:italic;
	opacity:0.5;
	
	font-family:'Lobster Two', cursive;
}
.article > .toc-place:before {
	content:"Index";
}

.article > p.box {
	background:rgba(0,0,0,0.05);
	font-size:81.125%;
	padding:0.5em 0.75em;
	width:80%;
	margin-left:auto;
	margin-right:auto;
}

@media (max-width:767px) {
	.article > p.box {
		width:90%;
	}
}

.article > .toc-place {
	margin: 1em auto;
	position: relative;
}

/* articleeditor.css にもあるので同期すべし */
/* .article-editing > .toc-place:empty::after,
.article-editing > .toc-place.block-editing::after, */
.article > .toc-place > .toc-list {
	border: 1px dashed #ccc;
	/*padding: .5em 1em; */
	font-size: 90%;
	margin:0;
	padding:.75em;
}

.toc-place > .toc-list > .toc-item + .toc-item {
	margin-top:.8em;
}

.toc-list .toc-list {
	font-size:80%;
	padding-left:0;
}

.toc-link {
	display:block;
}

.article .toc-list {
	list-style-type:none;
}
.article .toc-item::before {
	margin-right:.5em;
	content: attr(data-section-number);
	opacity: .5;
}
.article .toc-item .toc-item::before {
	content:'- ';
}
.toc-place > .toc-list > .toc-item[data-section-number=""]::before {
	/* 見出しなし小見出しの見出し部 */
	display:none;
}

.article .toc-item {
	display:flex;
}
.toc-item > .toc-item-container {
	flex-grow:1;
}

.toc-item > .toc-link + .toc-list {
	width:100%;
}

/*
.article > .toc-place > .toc-list {
}
.article > .toc-place > .toc-list > .toc-heading {
}
*/

.content-summary .font-color-black,
.article .font-color-black   { color: hsl(  0,  0%,  0%); }
.content-summary .font-color-red,
.article .font-color-red     { color: hsl(  0, 70%, 40%); }
.content-summary .font-color-brown,
.article .font-color-brown   { color: hsl( 30, 60%, 35%); }
.content-summary .font-color-orange,
.article .font-color-orange  { color: hsl( 20, 80%, 45%); }
.content-summary .font-color-yellow,
.article .font-color-yellow  { color: hsl( 45, 75%, 45%); }
.content-summary .font-color-green,
.article .font-color-green   { color: hsl(120, 45%, 35%); }
.content-summary .font-color-cyan,
.article .font-color-cyan    { color: hsl(180, 40%, 45%); }
.content-summary .font-color-blue,
.article .font-color-blue    { color: hsl(240, 40%, 50%); }
.content-summary .font-color-violet,
.article .font-color-violet  { color: hsl(275, 30%, 50%); }
.content-summary .font-color-pink,
.article .font-color-pink    { color: hsl(330, 45%, 60%); }

.content-summary .font-color-bgblack,
.article .font-color-bgblack   { background-color: hsla(  0,  0%,  0%, .1); }
.content-summary .font-color-bgred,
.article .font-color-bgred     { background-color: hsla(  0, 70%, 40%, .15); }
.content-summary .font-color-bgbrown,
.article .font-color-bgbrown   { background-color: hsla( 30, 60%, 35%, .15); }
.content-summary .font-color-bgorange,
.article .font-color-bgorange  { background-color: hsla( 20, 80%, 45%, .15); }
.content-summary .font-color-bgyellow,
.article .font-color-bgyellow  { background-color: hsla( 45, 75%, 45%, .15); }
.content-summary .font-color-bggreen,
.article .font-color-bggreen   { background-color: hsla(120, 45%, 35%, .15); }
.content-summary .font-color-bgcyan,
.article .font-color-bgcyan    { background-color: hsla(180, 40%, 45%, .15); }
.content-summary .font-color-bgblue,
.article .font-color-bgblue    { background-color: hsla(240, 40%, 50%, .15); }
.content-summary .font-color-bgviolet,
.article .font-color-bgviolet  { background-color: hsla(275, 30%, 50%, .15); }
.content-summary .font-color-bgpink,
.article .font-color-bgpink    { background-color: hsla(330, 45%, 60%, .15); }


[class^="font-color-bg"] {
	padding-left:.25em;
	padding-right:.25em;
}

.content-summary .font-color-ulblack,
.article .font-color-ulblack   { border-color: hsla(  0,  0%,  0%, .66); }
.content-summary .font-color-ulred,
.article .font-color-ulred     { border-color: hsla(  0, 70%, 40%, .66); }
.content-summary .font-color-ulbrown,
.article .font-color-ulbrown   { border-color: hsla( 30, 60%, 35%, .66); }
.content-summary .font-color-ulorange,
.article .font-color-ulorange  { border-color: hsla( 20, 80%, 45%, .66); }
.content-summary .font-color-ulyellow,
.article .font-color-ulyellow  { border-color: hsla( 45, 75%, 45%, .66); }
.content-summary .font-color-ulgreen,
.article .font-color-ulgreen   { border-color: hsla(120, 45%, 35%, .66); }
.content-summary .font-color-ulcyan,
.article .font-color-ulcyan    { border-color: hsla(180, 40%, 45%, .66); }
.content-summary .font-color-ulblue,
.article .font-color-ulblue    { border-color: hsla(240, 40%, 50%, .66); }
.content-summary .font-color-ulviolet,
.article .font-color-ulviolet  { border-color: hsla(275, 30%, 50%, .66); }
.content-summary .font-color-ulpink,
.article .font-color-ulpink    { border-color: hsla(330, 45%, 60%, .66); }

[class^="font-color-ul"] {
	border-bottom-width: 2px;
	border-bottom-style: solid;
}

[class^="font-color-"] * {
	color:inherit;
	/* background-color:inherit; */
}

.content-summary [class^="font-color-"]:not([class^="font-color-bg"]):not([class^="font-color-ul"]),
.content-summary [class$=" font-color-"]:not([class^="font-color-bg"]):not([class^="font-color-ul"]),
.article [class^="font-color-"]:not([class^="font-color-bg"]):not([class^="font-color-ul"]),
.article [class$=" font-color-"]:not([class^="font-color-bg"]):not([class^="font-color-ul"]) {
	font-weight:bold;
}

.article .sub-article {
	padding:.5em;
}
.article .sub-article > *:first-child {
	margin-top:0;
}

.article .sub-article > *:last-child {
	margin-bottom:0;
}

