@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Zilla Slab';
    src: url('../fonts/ZillaSlab-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
}



@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Thin.woff') format('woff');
font-weight: 200;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Light.woff') format('woff');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Italic.woff') format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Medium.woff') format('woff');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-MediumItalic.woff') format('woff');
font-weight: 500;
font-style: italic;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-BoldItalic.woff') format('woff');
font-weight: 700;
font-style: italic;
}

@font-face {
font-family: 'RobotoCondensed';
src: url('../fonts/RobotoCondensed-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'RobotoCondensed';
src: url('../fonts/RobotoCondensed-Italic.woff') format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'RobotoCondensed';
src: url('../fonts/RobotoCondensed-Bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'RobotoCondensed';
src: url('../fonts/RobotoCondensed-BoldItalic.woff') format('woff');
font-weight: 700;
font-style: italic;
}


@font-face {
font-family: 'Icomoon';
src: url('../fonts/icomoon6.woff') format('woff');
font-weight: normal;
font-style: normal;
}


[class*="icon"],
.readmore::before,
.prev::before,
.next::before,
#navmainswitch::after,

a#navmaintrigger::after,
.pagenav_article a.prev::before,
.pagenav_article a.next::after,
#navmain .active a::before,
.category-name a::before,
.next_category a::after {
font-family: 'icomoon' !important;
speak: none;
font-style: normal;
font-weight: normal !important;
font-variant: normal;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}


html {
height: 100%;
box-sizing: border-box;
}

*, *::before, *::after {
box-sizing: border-box;
}

:root {
--blue: #000;
--red: #df0070;
--thumb-bg: #fff /*#fcfcfc*/;
--mediumgrey: #f5f5f5;
}

body {
min-height: 100vh;
margin: 0;
padding: 0;
font-family: 'Roboto';
font-size: 16px;
font-weight: 400;
line-height: 1.5;
color: #000;
hyphens: manual;
-ms-hyphens: manual;
-webkit-hyphens: manual;
background-color: #dadada;
-moz-osx-font-smoothing: grayscale;
}




/* main containers */

.wrapper {
max-width: 1920px;
margin: 0 auto;
background: #fff;
padding: 0 40px;
}

.top_flex {
max-width: 1400px;
min-height: 100vh;
display: flex;
flex-direction: column;
margin: 0 auto;
}

header {
flex-grow: 0;
padding: 40px 0;
display: flex;
flex-flow: row nowrap;
gap: 80px;
}
main {
flex: 1;
border-top: 1px solid #ccc;
font-family: 'Zilla Slab', serif;
font-size: 19px;
font-weight: 400;
line-height: 1.4;
/*min-height: 100%;*/
position: relative;
}
/*.home main,
.article.columns main,
.category.bloglayout.text main,
.category.bloglayout main {
padding: 60px 0;
}*/


.home main {
border: none;
}
.home .blog {
margin-top: 60px;
}


.blog-catname {
/*min-height: 100%;
position: relative;*/
padding-bottom: 150px;
}
.text .blog-catname {
padding-bottom: 150px;
}

article {
padding-bottom: 60px;
}

footer {
flex-grow: 0;
padding: 30px 0 50px;
font-size: 14px;
background-color: #fff;
border-top: 1px solid #ccc;
}

/* end main containers */


.header-left {
flex-grow: 0;
min-width: 210px;
}
.header-right {
flex-grow: 1;
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
justify-content: flex-end;
position: relative;
gap: 28px;
padding-top: 4px;
}

#navmain,
.utility {
position: relative;
text-transform: uppercase;
line-height: 46px;
font-weight: 700;
background: #fff;
z-index: 1;
}


#contents {
display: none;
min-width: 250px;
position: absolute;
left: 0;
top: 46px;
gap: 20px;
font-size: 15px;
font-weight: 700;
line-height: 1;
border: 1px solid #ccc;
border-top: none;
background: #fff;
box-shadow: 0 10px 36px -15px rgba(0,0,0,0.7);
z-index: -1;
}


a#navmainswitch {
min-width: 250px;
display: flex;
justify-content: space-between;
gap: 10px;
padding: 0 15px;
font-size: 16px;
color: #000;
border: 1px solid #ccc;
background: #fff;
z-index: 2;
}

a#navmainswitch:hover {
color: var(--red);
}

a#navmainswitch::after {
display: block;
content: "\e5d2";
font-size: 24px;
line-height: 46px;
float: right;
}
#navmain .current a {
color: var(--red);
text-decoration: underline;
}

.utility,
.langnav {
display: flex;
flex-flow: row;
justify-content: space-between;
gap: 20px;
font-weight: 700;
line-height: 46px;
text-transform: uppercase;
}

.utility a {
display: block;
width: 48px;
text-align: center;
border: 1px solid #ccc;
}

.utility a:hover {
color: var(--red);
}

.utility a.active {
color: var(--red);
}

ul {
margin: 0;
}

#contents ul {
list-style: none;
margin: 0;
padding: 10px 15px 10px;
}
#contents ul li {
list-style: none;
margin: 22px 0;
}

a#navmainswitch.open::after {
content: "\e921";
font-size: 24px;
}


img {
display: block;
border: none;
width: auto;
height: auto;
max-width: 100%;
}


.site-title a,
.single_article.text .site-title a {
color: #000;
}
.site-title a:hover,
.single_article.text .site-title a:hover {
color: var(--red);
}

.site-title p {
margin: 0 0 15px;
font-size: 30px;
font-weight: 700;
line-height: 1;
}
.site-title p.subtitle {
margin: 0;
font-size: 20px;
}
.blog {
margin-top: 60px;
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 60px 40px;
}
.blog.text {
margin: 80px 0 70px;
}
.readmore {
flex: 1;
	width: 100%;
}
.readmore span::before {
content: "\e5c8";
display: block;
margin-top: 10px;
font-size: 20px;
line-height: 1;
color: var(--red);
}
.readmore span:hover::before {
color: var(--blue);
}

.boxed .blog {
	gap: 40px;
}

.boxed .intro { 
min-height: 100%;
padding: 15px; 
/*background: #f4f4f4 url(../img/corner.png) no-repeat right top; min-height: 100%; */
background: #f4f4f4;
display: flex; 
flex-flow: column nowrap; 
align-items: flex-start; 
backgtound-position: top right; 	
}

.boxed .intro h3,
.boxed .intro p {
flex-grow: 0;
margin: 0;
}
.boxed .intro .readmore {
flex-grow: 1;	
	display: flex;
	align-items: flex-end;
}
.boxed .intro .readmore a {
	display: block;
	width: 100%;
}



.cat-intro,
.columns_3 {
/*height: 100%;*/
columns: 300px 3;
column-gap: 41px;
column-rule: dotted 1px #666;
column-fill: revert;
margin-bottom: 80px;
}
.columns_3 {
margin-bottom: 0;
/*padding-bottom: 20px;*/
}
.columns_3 h2:nth-of-type(1) {
margin-top: 0;
}

.description {
margin-top: 80px;
padding-top: 2.5em;
width: 100%;
max-width: 680px;
border-top: 1px dotted #666;
}
/*.description h2:nth-of-type(1),
.description h3:nth-of-type(1) {
margin-top: 0;
}*/

.introtext {
margin-top: 30px;
padding-top: 20px;
max-width: 680px;
border-top: 1px dotted #666;
}


ol.alpha {
list-style-type: lower-alpha;
}
.cat-intro p,
.columns_3 p {
margin: 0;
text-indent: 30px;
}
.cat-intro p:first-child,
.columns_3 p:first-child,
.cat-intro p:last-child {
text-indent: 0;
}


.description p.source {
font-size: 18px;
line-height: 1.2;
}

.article_container p.source {
margin: 0 0 2em;
}
/*.article_container p.source_1 {
margin: 0 0 1.6em;
}
.article_container p.source_2 {
margin: 0 0 1.8em;
}*/

.cat-intro p.source {
margin: 10px 0 0;
}


.article_container .blog_item p {
font-size: 18px;
margin: .5em 0 0;
}
.article_container .blog_item p.item-desc {
margin-top: 20px;
}


.text .thumbset {
display: none;
}
.thumbset {
  position: relative;
  border: 1px solid #ccc;
background:  var(--thumb-bg);
}
.thumbset:hover {
  border: 1px solid var(--red);
}
.thumbset::before {
  content: "";
  padding-top: 100%;
  display: block;
}
.thumbset a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.thumbset img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
h3.item-title,
.blog_item h3 {
margin: 20px 0 0;
font-size: 19px;
font-weight: 600;
line-height: normal;
}

.home h3.item-title {
font-size: 20px;
}

.blog.text h3.item-title {
margin: 0 0 20px;
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
}


a {
text-decoration: none;
color: var(--blue);
}
a:hover {
color: var(--red);
}

.single_article.text a,
footer a {
color: var(--red);
}
.single_article.text a:hover,
footer a:hover {
color: var(--blue);
}
.single_article.text article a {
color: var(--red);
}
.single_article.text article a:hover {
color: var(--blue);
}

.single_article.text .utility a,
.single_article.text #navmain a {
color: var(--blue);
}
.single_article.text .utility a:hover,
.single_article.text #navmain a:hover,
.single_article.text #navmain .current a {
color: var(--red);
}



a.footnote,
.description a.footnote {
display: inline-block;
padding: 4px 6px;
font-family: 'Roboto', serif;
font-size: 11px;
font-weight: 700;
line-height: 1;
color: #fff;
background: var(--red);
border-radius: 3px;
}

a.footnote:hover,
.description a.footnote:hover {
color: #fff;
background: var(--blue);
}

.footnote-container {
margin-top: 40px;
}
.footnote-container:first-child {
margin-top: 0;
}


.cat-breadcrumbs {
margin: 40px 0 0;
font-family: 'Roboto', serif;
font-size: 14px;
font-weight: 500;
line-height: normal;
padding: 0 0 50px; 
}
.cat-breadcrumbs a,
.category-desc a,
.description a,
.introtext a {
color: var(--red);
}
.cat-breadcrumbs a:hover,
.category-desc a:hover,
.description a:hover,
.introtext a:hover {
color: var(--blue);
}

.single_article .cat-breadcrumbs {
display: none;
}
.single_article h1 {
margin: 60px 0 40px;
}

h1,
.catname h1 {
margin: 0;
font-size: 28px;
font-weight: 600;
}
.article_container p.subtitle {
margin: 10px 0 0;
max-width: 680px;
}
.text h1 {
margin-bottom: 40px;
}

h2 {
margin: 1em 0;
font-size: 24px;
font-weight: 600;
}
h2.topless {
margin-top: 0;
}
h3.hr_before {
margin-top: 2em;
padding-top: 1em;
border-top: 1px dotted #666;
}



h3 {
margin: 1em 0;
font-size: 22px;
font-weight: 600;
}

h4 {
margin: 1em 0;
font-size: 20px;
font-weight: 600;
}


.catname h1,
.article.columns h1,
.search-page h1 {
margin: 60px 0 40px;
font-size: 28px;
line-height: normal;
}
.article.columns ul {
padding: 0 0 0 1em;
margin: 0;
/*list-style-position: inside;*/
}
.article.columns ul li {
margin: 0 0 1em;
}



.blog_item {
position: relative;
}
.intro h3 {
margin: 20px 0 0;
font-size: 19px;
font-weight: 600;
}
.category.bloglayout.text .intro h3 {
font-size: 21px;
font-weight: 600;
margin: 0 0 1em;
}


.cat .blog {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 60px 30px;
}

/*.cat .blog_item p {
margin: .25em 0 0;
font-size: 18px;
text-align: center;
}*/


/*.article_container {
max-width: 1000px;
}*/
.article.bloglayout .article_container {
max-width: 100%;
}
/*article {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 80px;
}*/

.article_image {
display: flex;
flex-flow: column nowrap;
gap: 40px;
}
.article_image img {
width: 100%;
}

.article_container p {
text-indent: 0;
margin: 0 0 15px;
}
.article_container p.topspace {
margin-top: 40px;
}

.bordered img {
border: 1px solid #ccc;;
}

.article_container .article_text p:first-child {
margin-top: -5px;
}


.pagenav {
margin-top: 60px;
display: flex;
flex-flow: row nowrap;
gap: 60px;
justify-content: space-between;
}
.pagenav.cat {
width: 100%;
position: absolute;
left: 0;
bottom: 0;
padding-bottom: 60px;
}
.article .pagenav.cat {
padding: 60px 0;
}

.pagenav a {
color: var(--red);
}
.pagenav a.inactive {
color: #999;
}

.single_article.text article a.inactive {
color: #999;
}

.pagenav a:hover {
color: var(--blue);
}
.pagenav a.inactive:hover {
color: #999;
}


.prev::before, 
.next::before {
display: block;
font-size: 30px;
line-height: 1;
}


.prev::before {
content: "\e5c4";
}
.next::before {
content: "\e5c8";
}


/* Search */

#search-results {
gap: 20px;
}
.com-finder {
padding-bottom: 80px;
}
.com-finder ul {
margin: 0 0 20px;
padding: 0 0 0 18px;
}

legend,
.form-inline label {
display: none;
}
fieldset {
padding: 0;
border: none;
}

.form-inline {
margin-bottom: 30px;
}
.result__title {
margin: 20px 0 0;
}
ul li:first-child .result__title {
margin: 0;
}
/*.result__title {
max-width: 500px;
}*/

.result__description {
max-width: 500px;
margin: 0;
font-size: 17px;
}

.search-pages-counter {
margin-top: 0;
}

.com-finder a {
color: var(--red);
}
.com-finder a:hover {
color: var(--blue);
text-decoration: underline;
}
.com-finder input,
.com-finder button {
font-family: 'Roboto';
font-size: 16px;
font-weight: 400;
line-height: normal;
color: #000;
padding: 8px 16px;
border: 1px solid #ccc;
}
.com-finder button {
background:  var(--mediumgrey);
cursor: pointer;
}
.com-finder button:hover {
color: #fff;
background:  var(--red);
}
.com-finder__empty p {
display: none;
}
.com-finder__empty h2 {
margin: 0;
font-family: 'Roboto';
font-size: 16px;
font-weight: 400;
line-height: normal;
color: #000;
}
#search-query-explained {
font-family: 'Roboto';
font-size: 16px;
font-weight: 400;
line-height: normal;
color: #000;
}

.search-page nav.pagination {
display: flex;
flex-flow: row nowrap;
margin: 30px 0 15px;
gap: 40px;
}

.search-page nav.pagination div {
display: none;
}

.search-page nav.pagination div:nth-child(2),
.search-page nav.pagination div:nth-last-child(2) {
display: block;
}


.search-page nav.pagination div:nth-child(2) span span.next{
display: none;
}

.search-page nav.pagination div:nth-child(2) span::before {
font-family: 'icomoon' !important;
content: "\e5c4";
font-size: 30px;
line-height: 1;
}

.search-page nav.pagination div:nth-child(2 of .next)::before {
font-family: 'icomoon' !important;
content: "\e5c8";
}
.search-page nav.pagination a:hover {
text-decoration: none;
}


.audio_container {
max-width: 600px;
margin: auto;
padding: 30px 40px 40px;
background: #d8dadf;
}

.audio_container figure {
margin: 0;
}

.audio_container button.mfp-close {
position: absolute;
top: 0;
right: 0;
}
.audio_container button.mfp-close:hover {
color: var(--red);
}

audio {
width: 100%;
}
figcaption {
font-size: 17px;
font-weight: 600;
line-height: normal;
margin: 20px 0;
text-align: center;
}





.thumbset.video::before,
.thumbset.link::before {
  display: none;
}
.thumbset.video a,
.thumbset.link a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.thumbset.video a::before {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
background: url(../img/youtube_trans.svg) no-repeat center center;
}
.thumbset.link a::before {
content: "";
display: block;
position: absolute;
width: 100%;
height: 100%;
background: url(../img/external_trans.svg) no-repeat center center;
}


.thumbset.video a:hover::before {
background-image: url(../img/youtube_red.svg);
}
.thumbset.link a:hover::before {
background-image: url(../img/external_red.svg);
}


.video {
box-sizing: border-box;
max-width: 437px;
text-align: center;
margin: 0;
background-color: #eee;
}

.video iframe, .video object {
display: block;
margin: auto;
}
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.video .videoWrapper iframe,
.video .videoWrapper object {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

dt {
margin: 10px 0;
font-weight: bold;
}
dd {
margin-bottom: 5px;
}
dd p {
padding-top: 5px;
font-size: .9em;
}
dd p:after {
content: "";
display: block;
clear: both;
}



.image_anchor img {
margin: 2em auto;
}

.floated_image {
width: 100px;
float: left;
margin: 7px 15px 7px 0;
}

.bordered {
border: 1px solid #ccc;	
}

.question {
font-weight: 500;
}

/* ajax pop-up */

.popup_box {
position: relative;
width: 100vw;
max-width: 600px;
padding: 20px;
border: 1px solid #999;		
}



/* to top */
.fixed {
display: none;
height: 40px;
position: fixed;
bottom: 0;
right: 10px;
z-index: 100;
}

.fixed a {
display: block;
width: 40px;
height: 40px;
line-height: 40px;
font-size: 24px;
text-align: center;
color: #fff !important;
background-color: var(--red);
/*box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.4);*/
}
.fixed a:hover,
.fixed a:focus,
.fixed a:active {
color: #fff;
background-color: var(--blue);
}
/* end to top */








@media screen and (max-width: 1200px) {

.cat-intro {
columns: 300px 2;
}

}


@media screen and (max-width: 1024px) {

.blog {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

}




@media screen and (max-width: 830px) {

.header-right {
gap: 20px;
}

#navmain {
width: auto;
}

a#navmainswitch {
display: block;
min-width: 48px;
padding: 0;
text-align: center;
}
a#navmainswitch .contents_label {
display: none;
}
a#navmainswitch::after {
float: none;
text-align: center;
}

#contents {
left: auto;
right: 0;
top: 58px;
border-top: 1px solid #ccc;
min-width: 252px;
}


}



@media screen and (max-width: 720px) {


.cat-intro p,
.columns_3 p {
margin: 1em 0;
text-indent: 0;
}
.catname h1,
.article.columns h1 {
margin: 50px 0 20px;
}

.article.columns ul {
margin: 15px 0 0;
padding: 0;
list-style-position: outside;
}
.article.columns ul li {
margin-bottom: 1em;
break-inside: avoid;
}


}



@media screen and (max-width: 640px) {

header {
display: block;
padding-bottom: 30px;
}

.header-right {
margin-top: 50px;
justify-content: space-between;
}
#navmain {
width: 100%;
}

a#navmainswitch {
min-width: 220px;
padding: 0 15px;
display: flex;
justify-content: space-between;
gap: 10px;
}
a#navmainswitch .contents_label {
display: block;
}
#contents {
top: 47px;
width: 100%;
min-width: 0;
}


article {
display: block;
}
.article_image {
margin-bottom: 60px;
}



}



@media screen and (max-width: 503px) {


.header-right {
position: relative;
min-height: 52px;
}
#navmain {
position: absolute;
top: 0;
left: 0;
width: 100%;
}


a#navmainswitch {
display: block;
width: 48px;
min-width: 48px;
padding: 0;
text-align: center;
}
a#navmainswitch .contents_label {
display: none;
}

#contents {
top: 58px;
min-width: 220px;
}


.utility {
position: absolute;
top: 0;
right: 0;
}

}



@media screen and (max-width: 460px) {

.wrapper {
padding: 0 20px;
}

.blog {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

}


@media screen and (max-width: 359px) {

.search-page input {
max-width: 200px;
}
.com-finder button {
max-width: 70px;
}

.audio_container {
max-width: 600px;
margin: auto;
padding: 20px;
background: #d8dadf;
}


}
