/*
 Theme Name:   blankslate-child
 Description:  BlanSslate Child Theme
 Author:       John Doe
 Author URI:   https://lv73.net
 Template:     blankslate
 Version:      1.0.0
 Text Domain:  BlankSlate-child
*/

#wrapper{
  width: 100%;
  height: 100%;
	padding: 1em;
}

#container{
	padding: 1em 0;
}

/*#content{
  
}*/
/*#sidebar{
  padding: 0 1em;
}*/

.hentry {
  padding: 1em;
  border-radius: 3px;
  margin-bottom: 15px;
  border: 1px solid #BBBBBB;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", YuGothic, "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, "メイリオ", Meiryo, sans-serif; /*Bodyのフォント*/
  font-size: 100%;
  line-height: 1.5;
  color: #111111;				/* 文字色 */
  background-color: #FFFFFF;	/* 背景色 */
  /* transition: color 1s, background-color 1s;  ダークモード用のトランジション */
  -webkit-font-smoothing: antialiased; }

a {
  color: #1a0dab;
  text-decoration: none;
  /* on hover */
  /* on click */
  /* mobile tap color */ }

a:visited {
   color: #681da8;
}
  
  
a:hover, a:focus, a:visited:hover, a:visited:focus {
  text-decoration: underline;
}

h1{
  font-size: 1.5em;
  line-height: 1.4em;
}

h1.entry-title{
  font-size: 1em;
  line-height: 1.4em;
}

h1.su-post-title{
  font-size: 2em !important;
  line-height: 1.4em;
}

h2 {
	margin: 0 0 1.5em;
	padding: .8em;
	border-left: 7px solid #AAAAAA;
	border-bottom: 1px dashed #AAAAAA;
	font-size: 1.3em;
	font-weight: bold;
  margin: 0 0 1.5em;
}

h3{
	border-top:1px solid #AAAAAA;
	border-bottom:1px solid #AAAAAA;
	padding:.3em .4em;
	font-size: 1.125em;
  margin: 0 0 1.5em;
}

h4 {
  border-bottom: 3px dashed #AAAAAA;
  font-size: 1.1em;
  margin: 0 0 1.5em;
}

/* 水平線 */
hr {
  border: 1px solid #AAAAAA !important;
}

p {
  margin: 0 0 1.5em;
}

.css-br::after {
  content: "\A" ;
  white-space: pre;
}

/* リスト */
ol{
  list-style: decimal;
}

ul.wp-block-list{
  list-style: disc;
}

ol, ul:not(.xoxo) {
  padding: 0;
  padding-left: 2em;
}
/* dl, menu, ol, ul:not(.widget_block) {
  margin: 1em 0;
}*/
li.widget_block{
  list-style: none !important;
}

li.widget_block ul li{
  list-style: disc !important;
}

/* テーブル */
figure {
  margin: 0 0 1.5em;
}
.wp-block-table th,.wp-block-table td {
  border: solid 1px;              /* 枠線指定 */
}

.wp-block-table thead,.wp-block-table th{
  border-bottom: 3px double; /* ヘッダ行の下線 */
}

.wp-block-table table {
  border-collapse:  collapse;     /* セルの線を重ねる */
}

/* ページナビ用 */
.pagination {
  text-align: center;
  margin: 1.5em 0;
}
.pagination ul {
  display: inline-block;
  white-space: nowrap;
  padding: 0;
  clear: both;
  border-radius: 3px;
}
.pagination li {
  padding: 0;
  margin: 0;
  float: left;
  display: inline;
  overflow: hidden;
  border-right: 1px solid #eaedf2;
}
.pagination a, .pagination span {
  margin: 0;
  text-decoration: none;
  padding: 0;
  line-height: 1em;
  font-size: 1em;
  font-weight: normal;
  padding: 0.75em;
  min-width: 1em;
  display: block;
  /* color: #03dbfc; */
}

/* 引用 */
blockquote {
  position: relative;
  padding: 10px 12px;
  box-sizing: border-box;
  font-style: italic;
  /* color: #AAAAAA; */
  border: solid 3px #3ca5d4;
  margin: 1.5em;
}

blockquote:before{
  display: inline-block;
  position: absolute;
  top: 30px;
  left: -30px;
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  vertical-align: middle;
  content: "\"";
  font-family: sans-serif;
  color: #AAAAAA;
  font-size: 90px;
  line-height: 1;
}

blockquote p {
  position: relative;
  padding: 0;
  margin: 10px 0;
  z-index: 3;
  line-height: 1.7;
}

blockquote cite {
  display: block;
  text-align: right;
  /* color: #AAAAAA; */
  font-size: 0.9em;
}

li.menu-item{
  display: inline-block;
  padding: 0 5px;
}

/* header用 */
#site-title {
  margin: 1em;
}

div.site-title {
  font-size: 1.5em;
  line-height: 1.4em;
}

div.breadcrumbs {
  margin-left: 1em;
}

@font-face {
    font-family: "Px437-IBM_BIOS";
    font-display: swap;
    src: url("font/Px437_IBM_BIOS.ttf");
}
@font-face {
    font-family: "PixelMplus10-Bold-sub";
    font-display: swap;
    src: url("font/PixelMplus10-Bold-sub.ttf");
}

#inner-header {
	font-family: 'Px437-IBM_BIOS','PixelMplus10-Bold-sub',cursive;
}

/* 記事を並べる */
@media only screen and (min-width: 480px) {
  .grid-container {
    display: grid;
    gap: 0px 15px;
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (min-width: 600px) {
  .grid-container {
    display: grid;
    gap: 0px 15px;
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (min-width: 800px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  #content{
    float: left;
    width: 64%;
  }
  #sidebar{
    float: right;
    width: 34%;
  }
}

@media only screen and (min-width: 1200px) {
	div .grid-container {
		grid-template-columns: repeat(3, 1fr);
  }
  #content{
    float: left;  
  }
  #sidebar{
    float: right;
  }
}

@media only screen and (min-width: 1400px) {
	div .grid-container {
		grid-template-columns: repeat(3, 1fr);
  }
  #content{
    float: left;  
  }
  #sidebar{
    float: right;
  }
}

img.wp-post-image,img.wpp-thumbnail{
  padding: 2%;
  width: 100%;
  height: 192px;
  width: 100%;
  object-fit: contain;
}

/* コピーライトの位置設定 */
#copyright{
  width: 400px;
}

/* 広告ブロック検知用 */
div.ko-ko-ku-area{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display:flex;justify-content:center;align-items:center;
}

.ko-ko-ku-area img{
  max-width:100%;
  max-height:100%;       /* ＝ 280px */
  height:auto; width:auto;
}

.adarea{
  margin-bottom: 1.5em;
}

/* index.php等のアイキャッチ表示用 */
img.attachment-post-thumbnail {
  width: 192px !important;
  height: 192px !important;
  object-fit: contain;
}

/* preタグ用 */
pre {
	background-color: #000000;
	color: #ffffff;
	margin-left: 5%;
	margin-right: 5%;
  white-space: pre-wrap;
}

/* 関連記事yarpp */
.related-entry {
  display: flex; /* 横並びの設定 */
  flex-direction: row; /* サムネイルとコンテンツを横並びに */
  margin-bottom: 12px; /* 下余白 */
  padding: 0 0.5%; /* 記事の間隔（左右） */
  width: 100%; /* 幅を100%に設定して、親の幅いっぱいに広げる */
  line-height: 1.4; /* 行間を設定 */
}

.related-thumb {
  flex-shrink: 0; /* サムネイルが縮小しないようにする */
  margin-right: 10px; /* サムネイルとコンテンツの間隔 */
}

.related-content {
  display: flex;
  flex-direction: column; /* カテゴリーとタイトルを縦並びに */
}

.related-categories {
  margin-bottom: 8px; /* カテゴリーとタイトルの間隔 */
  font-size: 1.2em; /* カテゴリーの文字サイズ */
}

.related-entry img {
  border: #ccc 1px solid; /* 画像の枠線 */
  padding: 2%; /* 画像と枠線の間隔 */
  height: 128px !important; /* 高さを128pxに指定 */
  object-fit: contain; /* 画像の比率を保つ */
}

.related-thumb a,
.related-thumb a img {
  -webkit-box-shadow: none;
  box-shadow: none;
  text-decoration: none;
}

.related-thumb a:hover {
  opacity: 0.7; /* マウスオーバーで光る */
  filter: alpha(opacity=70);
  -ms-filter: "alpha( opacity=70 )";
  -webkit-box-shadow: none;
  box-shadow: none;
  text-decoration: none;
}

/* youtube埋め込みコード用 */
.youtube {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}
.youtube iframe {
	position: absolute;
	top: 0;
	right: 0;
	width: 100% !important;
	height: 100% !important;
}

/* キャプション中央揃え*/
figcaption {
font-size: 80%;
}

/* LIQUID SPEECH BALLOON用 */

.liquid-speech-balloon-text{
	color: #111111;
	background-color: #F5F5F5;
}

.liquid-speech-balloon-text p{
	display: inline; /* フキダシの無駄なスペース削除 */
}

.liquid-speech-balloon-wrap:not(.liquid-speech-balloon-vertical) .liquid-speech-balloon-arrow {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid #AAAAAA;
}

.liquid-speech-balloon-text p a{
	color: #1a0dab;
}

/* リンクカード */
.lkc-excerpt{
	color: inherit;
}
.lkc-title-text{
	color: inherit;
}
.lkc-domain{
	color: inherit;
}
.lkc-info{
	color: inherit;
}
.lkc-internal-wrap{
	background-color: inherit;
}
.lkc-external-wrap{
	background-color: inherit;
}
.lkc-more-text{
	color: inherit;
}

/* 数式用 */
.expre{
	padding: 1rem 2rem;
	border: 6px double #AAA;
}

/* 強調 */
strong{
	font-weight: bold;
}

/* SVG最大サイズ */
img[src*='.svg']{
    width: 100%;
    height: auto;
}

/* Googleマップ */
iframe.googlemap{
    width: 100%;
    aspect-ratio: 1.618/1;
}

/* 埋め込み用 */
iframe.steam{
  width: 100%;
}

/* 日本語の名言 */
p.meigen {
  font-size: 1.5em;
  font-family: 
    'Shippori Mincho',
    'Meiryo',
    'Yu Gothic',
    'Noto Serif JP',
    'KaiTi',
    'DFKai-SB',
    serif;
  font-display: swap;
}

/* 英語の名言 */
p.meigen-en {
  font-size: 1.5em;
  font-family: "Times New Roman", Times, "Nimbus Roman No9 L", "Liberation Serif", "Droid Serif", "Noto Serif", serif;
  font-display: swap;
}

/* ランダム名言用のボタン */
/* まずはお決まりのボックスサイズ算出をborer-boxに */
a.btn_18 {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	position: relative;
	width: 100%;
	margin: auto;
	padding: 1rem 4rem;
	font-weight: bold;
	border-radius: 10px;
  color: #AAA !important;
	border: 3px solid #AAA;
	box-shadow: 5px 5px #AAA;
	transition: 0.3s ease-in-out;
}
a.btn_18:hover {
	box-shadow: none;
	transform: translate(5px, 5px);
	color: #AAA;
}

/* コメントのプレースホルダー用 */
.ql-editor.ql-blank::before {
  color: #111111; /* 好みの色に変更 */
  content: attr(data-placeholder); /* プレースホルダーとして data-placeholder 属性の内容を表示 */
  pointer-events: none; /* クリックしても反応しないように設定 */
}

.js-mode-light .ql-editor.ql-blank::before {
  background-color: #FFFFFF;
}

/* トップに戻るボタン */
.pagetop {
  height: 35px;
  width: 35px;
  position: fixed;
  right: 15px;
  bottom: 20px;
  background: black;
  border: solid 2px white;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2;
  cursor: pointer;
}
.pagetop__arrow {
  display: block;
  height: 10px;
  width: 10px;
  border-top: 3px solid #FFF;
  border-right: 3px solid #FFF;
  transform: translateY(20%) rotate(-45deg);
}
@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop__arrow {
        border-color: #00c9e8;
    }
}

/* 前後の記事のマージン */
.wp-block-post-navigation-link,.wp-block-separator{
  margin: 0 0 1.5em;
}

/* 本日の名言 */
#daily-random-quotes {
  font-size: 20px;
}

ul.daily-random-quotes {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.daily-random-quotes li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: #ddd 1px solid;
}

ul.daily-random-quotes li:last-of-type {
    padding-bottom: 0;
    border-bottom: none; /* 最後の要素だけ横線なし */
}

ul.daily-random-quotes img.wpp-thumbnail {
    width: 150px; /* 必要に応じて調整 */
    height: 150px;
    object-fit: cover;
    margin-right: 1em;
    padding: 0;
}

ul.daily-random-quotes div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

ul.daily-random-quotes .wpp-taxonomy {
    margin-bottom: 3px;
}

ul.daily-random-quotes .wpp-post-title {
  font-size: 1.2em;
  font-weight: bold;
}