/*
 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, 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;
}

/* 記事を並べる */
@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;
  }
}

.amazon-img {
  max-width: 110px !important;
  height: 110px !important;
  object-fit: contain;
}

img.wp-post-image,img.wpp-thumbnail{
  padding: 2%;
  width: 100%;
  height: 192px;
  width: 100%;
  object-fit: contain;
}

/* コピーライトの位置設定 */
#copyright{
  width: 300px;
}

/* 広告ブロック検知用 */
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;
}

/* キャプション中央揃え*/
figcaption {
font-size: 80%;
}

/* リンクカード */
.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;
}

/* 強調 */
strong{
	font-weight: bold;
}

/* SVG最大サイズ */
img[src*='.svg']{
    width: 100%;
    height: auto;
}

/* Googleマップ */
iframe.googlemap{
    width: 100%;
    aspect-ratio: 1.618/1;
}

/* コメントのプレースホルダー用 */
.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;
}

/* 読者向けのUI（文字サイズ・テーマ） */
/* フォントサイズ切り替え */
article.font-small  { font-size: 87.5%; }   /* 小（=14px相当） */
article.font-medium { font-size: 100%;  }   /* 中（=基準サイズ、例：16px） */
article.font-large  { font-size: 112.5%; }  /* 大（=18px相当） */
article.font-xlarge { font-size: 150%;  }   /* 約24px */

/* テーマカラー切り替え */
article.theme-default { background: #fff; color: #000; }
article.theme-dark { background: #111; color: #eee; }
article.theme-sepia { background: #f4ecd8; color: #4b3b2a; }
article.theme-dark a {
  color: #66ccff;       /* 明るめの水色（暗背景に映える） */
  text-decoration: underline;
}
article.theme-dark a:hover {
  color: #ffffff;       /* ホバー時に白く */
  text-decoration: underline;
}

/* 全体バー */
.reader-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #f9f9f9;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5em;
  flex-wrap: wrap;
  width: auto;
  margin: 0 auto 1.5em auto;
}

.toolbar-container {
  text-align: center;
}

/* 共通ボタン */
.toolbar-btn {
  border: 1px solid #aaa;
  border-radius: 4px;
  background: white;
  color: black;
  padding: 0.2em 0.6em;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  transition: background 0.2s;
}

/* フォントサイズボタン */
.font-small  { font-size: 8px; }
.font-medium { font-size: 10px; }
.font-large  { font-size: 12px; }
.font-xlarge  { font-size: 16px; }

/* テーマボタン（見た目で識別） */
.theme-default { background: #ffffff; }
.theme-dark    { background: #222222; }
.theme-sepia   { background: #f4ecd8; }

/* 区切り線 */
.toolbar-divider {
  width: 1px;
  height: 24px;
  background: #ccc;
  margin: 0 0.5em;
}
