@charset "UTF-8";

/* 全体設定 */

html * {
	box-sizing: border-box;
}

body {
	font-size: 17px;
/* 	font-family: メイリオ, 'Hiragino Kaku Gothic ProN', Meiryo, Helvetica, Arial, sans-serif; */
	font-family: "Yu Gothic", "Meiryo", "Hiragino Kaku Gothic", "Noto Sans CJK", sans-serif;
	margin: 0px 3px;
/* 	background-color: #FCFCFC; */

}

a {
	color: var(--a-color);
	font-weight: 500;
}

ul li {
	margin-bottom: 6px;
}


.main-col {
	padding: 5px 10px;
}/*----- 変数設定  -----*/



:root {
	
	/* メインカラー  */
	--main-color: #58CE91;
	
	/* グレー*/
	--h-color: #F1F3F4;
	
	/* リンク カラー */
	--a-color: #3344ff;
	


}

/*

#007bbb  紺碧こんぺき（青に近い）

#3344ff  濃いめのブルー
#2098A8  薄い青

#191970  midnightblue
#000080  navy

#3FA4F1  水色
#1A73E8  水色と青の間

#58CE91  薄緑
#a1a46d  柳茶やなぎちゃ
#f39800  金茶きんちゃ

#EC9B00  オレンジ
*/





/*----- レイアウト用 -----*/
/* セパレートあり*/

.main-container {
	display: flex;
	justify-content: flex-start
}


main {
/* 	border: 1px solid silver; */
/* 	background-color: #FCFCFC; */
	background-color: #F4F5F7;
	padding: 5px;
/* 	max-width: 1100px; */
	margin: 0 auto;
}


.main-col {
	flex: 1 1 auto;
	
	order: 1;
	margin: 5px 5px 5px auto;
/* 	margin: 5px; */
	
	padding: 15px;
	border: 1px solid #D6D6D6;
	max-width: 770px;
	
	border-radius: 7px;
	background-color: white;
	
	/* サイドバーの幅を引いたメインコンテンツの幅 */
/* 	width: calc(100% - 320px);  */
	
	
}

#sidebar {
	flex: 0 0 320px;
	
	order: 2;
	margin-left: auto;
	margin: 5px auto 5px 5px;
/* 	margin: 5px; */
	
	padding: 10px 5px;
/* 	border-left: 1px solid #D6D6D6; */
	border: 1px solid #D6D6D6;
	border-radius: 7px;


  @include tab {
    width: 95%;
    margin: 10px auto 5px auto;
  }
}



/* 650px 以下 */
@media screen and (max-width: 800px){
	
	body {
		font-size: 16px;
	}
	
	.main-container {
		flex-direction: column;
/* 		display: block; */
	}

	.main-col {
		flex: 1;
	    width: 95%;
	    margin: 3px auto 5px auto;
	}
	
	#sidebar {
		flex: 2;
	    width: 95%;
	    margin: 3px auto 5px auto;
	}
	
	main {
/* 		margin-left: 3px; */
	}


}

.genre-frame {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}




.genre-outer {
	width: 300px;
	margin: 10px;
	padding: 10px;
	border: solid 1px silver;
	border-radius: 5px;
}

.dummy {
	border: none;
}


.genre-head {
	font-weight: bold;
	margin-bottom: 5px;
}

.main-img {
	max-width: 750px;
	margin: 0 auto;
	padding: 0;
}
	

h1 {
	font-size: 18px;
}

body {
	margin: 0px;
	padding: 0;
}

/* 650px 以下 */
@media screen and (max-width: 650px){

	h1 {
		font-size: 16px;
	}
  
}
/* ---------------------- */
/* 見出し（ヘッドライン） */
/* ---------------------- */

h1 {
	font-size: 24px;
	font-weight: bold;
	padding-bottom: 8px;
	margin: 10px 2px 10px 2px;
	border-bottom: 1px solid silver;
}

/* 背景色がグレーで左端に --main-color */
h2 {
	font-size: 21px;
	padding: 7px 10px;
	margin: 1em 0;
	border-left: solid 10px var(--main-color); 
	border-right: solid 10px var(--main-color); 
	background-color: var(--h-color);
	color: black;
}

h3 {
/* 	border-left: solid 8px var(--main-color);  */
	font-size: 18px;
	padding: 3px 10px;
	border-bottom: 1px solid silver;
}
h4 {
  margin: 15px 0 0 0;
  padding: 1px 0px;
  font-size: 18px;
  
}
h4::before {
	content: "■ ";
}


h5 {

}












#header {
	margin: 0;
	padding: 5px 0px 5px 10px;
	width: 100%;
/* 	height: 60px; */
/* 	border-top: 4px solid var(--main-color); */
/* 	border-bottom: 3px solid var(--main-color); */
	border-bottom: 1px solid silver;
	text-align: left;
	background-color: var(--main-color);
}

#header a {
	font-size: 26px;
	font-weight: bold;
/* 	color: var(--main-color); */
	color: white;
	text-decoration: none;
}

div.header-inner {
	margin-left: auto;
	margin-right: auto;
	max-width: 1060px;
}

/* 820px 以下 */
@media screen and (max-width: 820px){

	#header a {
		font-size: 18px;
	}
  
}

/* 650px 以下 */
@media screen and (max-width: 650px){

	#header a {
		font-size: 16px;
	}
  
}



/* 開閉部分 */
summary:hover {
  cursor: pointer; /* 指差しアイコンに変更 */
}
summary {
	font-weight: 600;
	margin-bottom: 20px;
}



/*----- パンくずリスト用  -----*/

.breadcrumb {
  margin: 0;
}
.breadcrumb ul {
  display: flex;
  padding-left: 5px;
  margin: 0;

}

.breadcrumb ul li {
  display: block;
}div.promotion {
	text-align: right;
	font-size: 0.9rem;
	margin: 0px 5px;
	color: dimgray;
}
.time-stamp {
	font-size: 0.9rem;
	text-align: right;
	margin: 0px 5px;
	color: dimgray 
}


/* アンカーリンク */

.no-underline a {
	text-decoration: none;
	color: var(--a-color);
}

.no-underline a:hover {
	text-decoration: underline;
}

ul.no-underline {
	list-style-type: circle;
}


a.underline {
	text-decoration: underline;
}

/*----- toc 用  -----*/

#toc {
  width: auto;
/*  border: 2px solid var(--main-color); */
  border: 1px solid gray;
  display: table;
  padding: 1em 1.2em;
  margin-bottom: 1em;
  font-size: 0.98em;
  border-radius: 15px;
/*  background-color: #f9f9f9; */

}


/*
#toc li {
	margin-bottom: 9px;
}


.toc-title {
  font-weight: bold;
  padding-left: 10px;
}

.toc-content ul {
  padding-left: 1em;
}
*/

/*
#toc li.toc-h2::before {
  content: ""; 
}

#toc .toc-h3 {
	margin-left: 0.5em;
}

#toc li.toc-h3 {
	list-style: none;
}

#toc li.toc-h3::before {
	content: "・";
}
*/

.toc-content a {
/*   color: mediumblue; */
  text-decoration: none;
}

.toc-content a:hover {
	text-decoration: underline;
}



#toc ul.ranking {
  counter-reset: rank_li;
  counter-reset: rank_h2;
  list-style: none;
  padding: 0;
}

#toc ul.ranking li {
  counter-increment: rank_li;
}

#toc ul.ranking li::before {
  content: counter(rank_li) "位. ";
  color: #0a0a0a;
  font-weight: bold;
  margin-right: 2px;
}

h2.ranking_h2 {
  counter-increment: rank_h2;
}

h2.ranking_h2::before {
  content: counter(rank_h2) "位. ";
}

#sidebar {
/* 	margin-left: 3px; */
	font-size: 17px;
	background-color: white;
}


#sidebar ul {
	list-style: none;
	padding-left: 0px;
	background-color: white;
	margin-left: 10px;

}

#sidebar li {
	margin-top: 6px;
	margin-bottom: 9px;
	
}

#sidebar .genre {
	padding: 4px 5px;
	font-weight: bold;
	font-size: 17px;
	border-bottom: 2px solid var(--main-color);
	color: black;
}

/*

#sidebar genre {
	padding-left: 5px;
	font-weight: bold;
	font-size: 17px;
	border-bottom: 2px solid silver;
}
*/

#sidebar ul.circle {
	list-style: circle;
	padding-left: 1em;
}

/* アフィリエイト用 */

/* 全体ボックス */
.aff-contents {
  display: flex;
  flex-direction: row;
  background-color: #ffffff; /* 白ベース */
  border-radius: 12px;       /* 角丸 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 軽めの影 */
  padding: 16px;
  gap: 16px;
  max-width: 800px;
  margin: 20px auto;
}

/* 左側の画像 */
.aff-left img {
  width: 113px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* 右側のテキスト情報 */
.aff-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  text-align: left; /* 左揃え */
}

/* タイトル */
.aff-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 書籍情報 */
.aff-info {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 12px;
}

.aff-info-price {
  font-weight: bold;
  color: #d32f2f;
  margin-right: 4px;
}

.aff-info-pdate {
  color: #888888;
  font-size: 0.75rem;
}

/* ボタンリンク */
.aff-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; /* 縦並び可能 */
  justify-content: flex-start;
}

.aff-button {
  text-decoration: none;
  width: 140px;   /* 固定幅 */
  height: 40px;   /* 固定高さ */
  line-height: 40px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  transition: background-color 0.2s ease;
}

/* ボタン色 */
/*
.aff-amazon {
  background-color: #4CAF50;
}

.aff-amazon:hover {
  background-color: #e68a00;
}

.aff-rakuten {
  background-color: #2196F3;
}

.aff-rakuten:hover {
  background-color: #990000;
}
*/


.aff-amazon {
  background-color: #FF9900;
}

.aff-amazon:hover {
  background-color: #E68A00;
}

.aff-rakuten {
  background-color: #BF0000;
}

.aff-rakuten:hover {
  background-color: #990000;
}

/*
Amazon風オレンジ系 → #FF9900（現状）

Rakuten風赤系 → #BF0000（現状）

代替案：

緑系：#4CAF50（安心・自然・書籍系によく合う）

青系：#2196F3（清潔感・信頼感）

紫系：#9C27B0（高級感・知的）
*/


/* レスポンシブ対応 */
@media (max-width: 500px) {
  .aff-contents {
    flex-direction: column;
    align-items: flex-start;
  }

  .aff-left img {
    margin-bottom: 12px;
  }

  .aff-right {
    width: 100%;
  }

  .aff-links {
    flex-direction: column; /* 小さい画面では縦並び */
    align-items: flex-start;
    gap: 8px;
  }

  .aff-button {
    width: 140px; /* 固定幅維持 */
    height: 40px;
  }
}/* ボーダー */
.so {
	border: 1px solid silver;
}

.so2 {
	border: 1px solid silver;
	padding: 5px;
}

.so3 {
	border: 1px solid silver;
	padding: 7px 10px;
	background-color: #FFFBF0;
}


.so-g {
	border: 1px solid silver;
	padding: 7px 10px;
	background-color: whitesmoke;
}

.so-p {
	border: 1px solid silver;
	padding: 7px 10px;
	background-color: #FFFBF0;
}

.so-y {
	border: 1px solid silver;
	padding: 7px 10px;
	background-color: #ffffbf;
}/* ボックス用 */

.mt-10 {
	margin-top: 10px;
}


.mb-10 {
	margin-bottom: 10px;
}

.ml-10 {
	margin-left: 10px;
}


.scroll {
	overflow: auto;
}
/* アドセンス ------------------------------ */
#google_top {
	margin-top: 15px;
	margin-bottom: 20px;
	max-height: 200px;
}

.ad_text {
/*	font-weight: bold; */
	margin-top: 10px;
}

#google_bottom {
	margin-top: 20px;
	margin-bottom: 20px;
}


#google_sidebar {
	margin: 20px auto;
	position: sticky;
	top: 20px;
}



div.ad-sidebar {
/* 	max-height: 50px !important; */
	margin-bottom: 10px;
}

/* ASPの広告 サイドバー*/
div.asp-side {
	margin: 10px auto;
}




/* 2つ並べる場合、flexを設定 */
/*
#google_bottom {
	display: flex;
	flex-wrap: wrap;
}
*/


/* ２つ並べる */

#ad_bottom_left, #ad_bottom_right{
	margin-left: 10px !important;
	margin-bottom: 10px;
    max-width: 336px;
    width: 336px; 
	border: 1px solid silver;
}


/* レスポンシブ */

@media (max-width : 1080px){
	#ad_bottom_right{
		display: none;
	}
}



.red {
	color: red !important;
}

.re {
	color: red;
}

.g {
	color: green;
}

.bo {
	font-weight: bold;
}

em {
	color: #e00;
	font-weight: bold;
	font-style: normal;
}

.green {
	color: green;
}

.ym {
	background: linear-gradient(transparent 70%, #ffd700 30%);
}


/* 部分インデックスのリスト<li>用の margin-bottom */
.idx-part ul li {
	margin-bottom: 8px;
}




/* blockquote用 */

blockquote{
    border:1px solid silver;
    background-color: #e5e6f4;
    border-radius:5px;
    padding:5px;
    margin: 5px 10px;
}

blockquote p{
  padding: 5px 5px;
  margin: 5px 5px;
  
}

blockquote cite{
  display: block;
  font-size:0.8rem;
  color:gray;
  text-align:left;
  padding:5px;
}




footer {
	margin: 0px;
	padding: 10px 1px;
	width: 100%;
	min-height: 50px;
	border-top: 1px solid silver;
	border-top: 3px solid var(--main-color);
/* 	border-bottom: 4px solid var(--main-color); */
	color: black;
	text-align: center;
}

div.footer-inner {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

footer div {
	margin: 3px;
}
img {
/* 	max-width: 100% !important; */
}

ul {
	padding-left: 1.5em;
}

.list-mb-3 li{
	margin-bottom: 3px;
}


/* 目次 */
pre.book-mokuzi {
	font-family: inherit; /* 親要素からフォントを継承 */
	white-space: pre-wrap; /* 折り返す */
	word-break: break-all; /* 文字間であっても右端で改行される（レスポンシブ向き） */
	padding-left: 3px;
}


pre.book-review {
	font-family: inherit; /* 親要素からフォントを継承 */
	white-space: pre-wrap; /* 折り返す */
	word-break: break-all; /* 文字間であっても右端で改行される（レスポンシブ向き） */
	padding: 5px;
	line-height: 1.2;
	
	background-color: #fafafa;
}
/* ----- テーブル用 --------- */

/************************************
** テーブル（Table）
************************************/
table{
	border-collapse: collapse;
	margin: 15px 0;
	max-width: 100%;
	width: auto;
}

th{
	border: solid 1px #ccc;
	background-color: #eee;
}

td{
	border: solid 1px #ccc;
}

th, td{
	padding: 3px 8px;
}

.bg-color2 {
	background-color: snow;
}

/* ボタン */

/* リセット */
.cls-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
	
}

.cls-btn {

/*   position: relative; */
  display: inline-block;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: #FFF;
  background: #fd9535;/*背景色*/
  border-bottom: solid 2px #d27d00;/*少し濃い目の色に*/
  border-radius: 4px;/*角の丸み*/
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 2px 2px rgba(0, 0, 0, 0.19);
  font-weight: bold;
}

.cls-btn:hover {
	opacity: 0.9;

}


.cls-btn:active {
  /*押したとき*/
  -webkit-transform: translateY(3px);
  transform: translateY(3px);/*沈むように*/
  border-bottom: solid 2px #fd9535;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}


/* ------ Red  ---------------- */

/* リセット */
.cls-btn-red {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
	
}

.cls-btn-red {

/*   position: relative; */
  display: inline-block;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: #FFF;
  background: #ef3f00;/*背景色*/
  border-bottom: solid 2px #d27d00;/*少し濃い目の色に*/
  border-radius: 4px;/*角の丸み*/
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 2px 2px rgba(0, 0, 0, 0.19);
  font-weight: bold;
}

.cls-btn-red:hover {
	opacity: 0.88;

}


.cls-btn-red:active {
  /*押したとき*/
  -webkit-transform: translateY(3px);
  transform: translateY(3px);/*沈むように*/
  border-bottom: solid 2px #fd9535;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.30);
}
.flex-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flex-list li {
  flex: 0 1 45%;
}

.flex-list a {
  display: block;
  padding: 3px;
}


@media (max-width: 450px) {
  /* flexを解除 */
  .flex-list {
    display: block;
  }
  
  .flex-list li {
    flex: none;   /* ← これがポイント */
    width: 100%;
  }
}

/* フォーム部品の背景色を変更する */

.form-bgc {
	background-color: lemonchiffon;
/* 	border: 1px solid blue; */
	
}
