@charset "UTF-8";
/*
Theme Name: illustnomi 2022
Author: ikeueshin
Description: イラスト素材サイト「イラストノミ」のオリジナルテーマです
Version: 1.0
*/

img {
    max-width: 100%;
    height: auto;
}

.alignleft {
	float: left;
	margin-left: 0;
	margin-right: 1em;
}

.alignright {
	float: right;
	margin-left: 1em;
	margin-right: 0;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-block-categories.aligncenter,
.wp-block-latest-posts.aligncenter,
.wp-block-archives.aligncenter,
.wp-block-tag-cloud.aligncenter,
.wp-block-latest-comments.aligncenter,
.wp-block-rss.aligncenter {
	text-align: center;
}

figure {
	margin-left: 0;
	margin-right: 0;
}

body {
	box-sizing: border-box;
}

body *,
body *::before,
body *::after {
	box-sizing: inherit;
}


/* 変数 */
:root {
	--f1: 2.44em; /* 39.04px */
	--f2: 1.95em; /* 31.2px */
	--f3: 1.56em; /* 24.96px */
	--f4: 1.25em; /* 20px */
	--f5: 1em;    /* 16px */
	--f6: 0.9em;  /* 12.8px */

	--basecolor: #1e2a6a; /* 基本色 */
	--gradient: linear-gradient( 79.7deg,  rgba(34,126,34,1) 8.2%, rgba(99,162,17,1) 84.9% ); 

	--myfont: 'Zen Maru Gothic', sans-serif;
	--myw: 720px; /* 標準幅 */
}


/* フォント */
body {
	font-family: sans-serif;
}

p {
	line-height: 1.8;
	font-size: var(--f5);
}

h1 {
	font-size: var(--f1);
}
h2 {
	font-size: var(--f2);
}
h3 {
	font-size: var(--f3);
}
h4 {
	font-size: var(--f4);
}
h5 {
	font-size: var(--f5);
}
h6 {
	font-size: var(--f6);
}

h1 {
	font-family: var(--myfont);
}

h2 {
	text-align: center;
	font-family: var(--myfont);

}

h3 {
	font-family: var(--myfont);
	display: inline-block;
	background: linear-gradient(transparent 60%, #F8EA78 60%);
	padding: 0 10px 0 10px;/*余白の指定*/
	margin: 5px;
}


/* 横幅 */
body {
	margin: 0;
}

.mycontainer {
	margin-left: 10px;
	margin-right: 10px;
}

.mycontainer > .alignfull {
	margin-left: -10px;
	margin-right: -10px;
	max-width: none;
	width: auto;
}

@media (min-width: 740px) {

	.mycontainer {
		max-width: none;
		margin-left: calc( ( 100vw - var(--myw) ) / 2 );
		margin-right: calc( ( 100vw - var(--myw) ) / 2 );
	}

	.mycontainer > .alignfull {
		margin-left: calc( ( 100vw - var(--myw) ) / 2 * -1 );
		margin-right: calc( ( 100vw - var(--myw) ) / 2 * -1 );
	}

	.mycontainer > .alignwide {
		margin-left: calc( ( 100vw - var(--myw) ) / 4 * -1 );
		margin-right: calc( ( 100vw - var(--myw) ) / 4 * -1 );
		max-width: none;
		width: auto;
	}
}

@media (min-width: 1320px ) { 
	.mycontainer > .alignwide {
		margin-left: -150px;
		margin-right: -150px;
	}
}



/* 記事に関する情報 */
.myposthead,.content{
	padding-top: 10px;
	padding-bottom: 10px;
	text-align: center;

}

.myposthead p {
	color: var(--basecolor);
	font-family: var(--myfont);
	font-weight: bold;
	font-size: var(--f4);
	line-height: 0.2;
}


/* リンク */
a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	opacity: 0.7;
}

/* 記事が属するカテゴリー */
.post-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
	list-style-type: none;
}

.post-categories li:not(:last-child) {
	margin-right: 10px;
}

.post-categories a {
	padding: 3px 10px;
	border: solid 1px currentColor;
	border-radius: 7px;
	color: var(--basecolor);	
	font-size: var(--f6);
}

.post-categories::before {
	content: "\f318";
	font-family: "dashicons";
	color: var(--basecolor);
	font-size: var(--f2);
	line-height: 1;
	margin-right: 5px;
}

/* スクリーンリーダー用のテキスト */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* 前後の記事へのリンク */
.nav-links {
	display: flex;
	margin: 10px 0px 30px 0px;
	font-size: var(--f5);
}

.nav-previous {
	flex: 1;
	display: flex;
	align-items: center;
}

.nav-next {
	flex: 1;
	margin-left: 10px;
	text-align: right;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.nav-previous::before {
	content: "\f141";
}

.nav-next::after {
	content: "\f139";
}

.nav-previous::before, .nav-next::after {
	font-family: "dashicons";
	color: var(--basecolor);
	font-size: var(--f1);
	line-height: 1;
}

/* ヘッダー */
.myhead > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
}

/* フッター */
.myfoot {
	padding: 8px;
	background-color: var(--basecolor);
	color: #ffffff;
	text-align: center;
	font-family: var(--myfont);
}

/* 記事一覧 */
.mypostlist,
.myrelated-layout {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.mypostlist article {
	width: 32%;
	margin: 10px auto;
}

.mypostlist figure {
	margin: 0;
}

.mypostlist img {
	height: 180px;
	width: 100%;
	object-fit: contain;
}

.mypostlist h2{
	text-align: center;
	margin: 0;
	padding: 0;
	text-decoration: underline;
	font-family: sans-serif;
	font-size: var(--f5);
	font-weight:normal;
}

.mypostlist p {
	text-align: center;
	margin: 3px;
	padding: 0;
	line-height:1.1;
	font-size: var(--f6);
}

/* 関連記事 */
.myrelated {
    position: relative;
    margin: 0;
    border: solid 2px var(--basecolor);
    border-radius: 8px;
}

.myrelated-layout article {
	width: 48%;
	margin: 5px auto;
}

.myrelated-layout figure {
	margin: 12px 10px 0px 15px;
}

.myrelated-layout img {
	height: 120px;
	width: 100%;
	object-fit: contain;
}

.myrelated-layout h2{
	text-align: center;
	margin: 0;
	padding: 0;
	text-decoration: underline;
	font-size: var(--f5);
	font-weight:normal;
}

.myrelated-layout p {
	text-align: center;
	margin: 0px 5px 7px 0px;
	padding: 0;
	line-height:1.1;
	font-size: var(--f6);
}

/* 枠にかかるタイトル */
.myrelated .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
	font-family: var(--myfont);
    font-size: var(--f4);
	font-weight:bold;
    background: #FFF;
    color: var(--basecolor);
}

.myrelated img {
	height: 120px;

}

@media (min-width: 740px) {
	.myrelated article {
		width: 24%;
	}

	.myrelated .mypostlist {
		justify-content: flex-start;
	}

	.myrelated article:not(:last-child) {
		margin-right: calc( 4% / 3 );
	}
}

/* ページネーション */
.pagination .nav-links {
	margin-bottom: 50px;
	justify-content: center;
}

.pagination .page-numbers:not(:last-child) {
	margin-right: 15px;
}

.pagination a {
	color: var(--basecolor);
}

.pagination .current {
	color: #aaaaaa;
}


/* メニュー */
.mymenu {
	margin-top: 40px;
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #fbf6e8;
}

.mymenu h2 {
	padding: 8px;
	color: var(--basecolor);
	font-size: var(--f4);
	background-image : linear-gradient(to right, #c72617 4px, transparent 3px, transparent 8px);  /* 幅2の線を作る */
	background-size: 7px 1px;          /* グラデーションの幅・高さを指定 */
	background-position: left bottom;  /* 背景の開始位置を指定 */
	background-repeat: repeat-x;       /* 横向きにのみ繰り返す */
}

.myprofile figure {
	text-align: center;
}

.myprofile img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
}

.myprofile strong {
	display: block;
	text-align: center;
	font-family: var(--myfont);
}

.myprofile p {
	font-size: var(--f6);
}

.widget ul {
	padding: 0;
	list-style-type: none;
	font-size: var(--f6);
}

.widget li:not(:last-child) {
	margin-bottom: 5px;
}

.widget select {
	width: 100%;
	height: 40px;
	border: solid 1px #aaaaaa;
}

@media (min-width: 740px) {
	.mymenu-columns {
		columns: 3;
		column-gap: 30px;
	}

	.mymenu-columns > section {
		position: relative;
		overflow: hidden;
		break-inside: avoid;
	}
}


/* 上下の余白 */
.mymargin {
	margin-top: 40px;
	margin-bottom: 40px;
}


/* お問い合わせ */
.wpcf7-text,
.wpcf7-textarea {
	width: 100%;
	padding: 10px;
	border: solid 1px #bbbbbb;
}

.wpcf7-submit {
	width: 160px;
	padding: 8px 5px 5px;
	border: none;
	background-color: var(--basecolor);
	border-radius: 10px;
	color: #fff;
	font-size: var(--f4);
	-webkit-appearance: none;
}

/* ナビゲーションメニュー */
.mynav {
	padding: 7px 0;
	background-color:var(--basecolor);
	color: #ffffff;
	font-size: var(--f6);
}

.mynav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.mynav li:not(:last-child) {
	margin-right: 3em;
}

/* シェアボタン */
.myshare {
	margin-top: 60px;
	margin-bottom: 40px;
}

.myshare h2 {
	padding: 0;
	border: none;
	color: var(--basecolor);
	font-family: var(--myfont);
	font-size: var(--f5);
	text-align: center;
	line-height: 1.2;
}

.myshare .mytwitter {
	color: #1da1f2;
}

.myshare .myfacebook {
	color: #3b5998;	
}

.myshare a {
	width: 49%;
	padding: 10px;
	border: solid 1px currentColor;
	line-height: 1;
	text-align: center;
}


/* ２段組み */
@media (min-width: 1320px) {

	.mycols .mycontainer,
	.mycols .alignwide,
	.mycols .alignfull {
		width: auto;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}

	.mycols .mymenu-columns {
		columns: 1;
	}

	.mycols {
		display: flex;
		margin: 50px calc( ( 100vw - 1020px ) / 2 );
		justify-content: space-between;
	}

	.mycols .mycontent {
		width: 68%;
	}

	.mycols .mymenu {
		width: 26%;
		margin-top: 0;
		padding: 10px;
	}

}

/* タグ表示 */
.tag_block{
	margin: 7px 0px 0px 0px;
}

.tag-item{
	display: inline-block;
	vertical-align: middle;
	background-color:#ebebeb;
	line-height: 1.8;
	font-size: var(--f5);
	padding: 2px 10px 0px 10px;
	margin: 0px 6px 15px 0;
	border-radius: 7px;
	color: #444444;
}

.tag_block::before {
	content: "\f323";
	font-family: "dashicons";
	color: #444444;
	font-size: var(--f3);
	line-height: 2;
	margin: 0px 3px 0 0 ;
}

/* 検索フォームのデザイン */
.searchfield {
  width: 78%;
  padding: 7px 5px;
  border: 2px solid #ddd;
  border-radius: 3px;
}
 
button {
  /* ブラウザ特有のスタイルを無効に */
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;

  /* 整える */
	width: 18%;
	padding: 4px 2px 3px 2px;
	font-size: var(--f6);
	color: #000; /* テキストカラー */
	background-color: #e2e2e2; /* 背景色 */
	cursor: pointer; /* カーソルを指マークに */
	border-radius: 5px; /* 角の丸み */
	border: 0; /* 枠線を消す */
}
 
.searchsubmit:hover {
  opacity: 0.6;
}

/* カテゴリー一覧表示 */
.mycat {
	display: flex;
	flex-wrap: wrap;
	font-family: var(--myfont);
	font-size: var(--f3);
	text-align: center;
}

.mycat a {
	display: block;
}

.mycat ul {
	background-color: #ebebeb;
	list-style-type: none;
	width: 46%;
	margin: 7px;
	padding: 15px 0;
	border-radius: 15px;
}

.mycat li:not(:last-child) {
	margin-right: 1em;
}




	
