/*
Theme Name: Lightning Child P inside
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/
h {
	color: #333;
}
p {
	color: #555;
}
/******************ストライプ柄のマーカーグレー*/
.marker-stripe {
	background-image: repeating-linear-gradient(-45deg,
		#DADADA 0, #DADADA 2px,
		transparent 2px,
		transparent 4px);
	background-repeat: no-repeat;
	background-position: left bottom;
  background-size: 100% 0.5em;
}
/********************アローボタン*/
.arrow-btn a {
	position: relative;
	color: #666;
	padding: 0,2.5em,5em,5em;
	text-decoration: none;
	}
.arrow-btn a::before{
	border-bottom: 1px solid #666;
	border-right: 1.5px solid #666;
	bottom: -5px;
	content: "";
	height: 15px;
	position: absolute;
	left: -15%;
	transform: skewx(50deg);
	width: 140%;
	transition: all .3s;
}
.arrow-btn a:hover::before {
	left: 12%;
}
/*************************************
 TOC ノート風デザイン 
***************************************/
#toc_container {
  background: #fff;
  border: 2px solid #d5d7d2;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 3em 2em 1em; /* ← 上を少し広くして穴スペース確保 */
  margin: 2em auto;
  width: 90%;
  position: relative;
  box-sizing: border-box;
  line-height: 1.1;
  overflow: hidden; /* 枠内に収めるために追加 */
}
/* 枠内ルーズリーフ穴（中央揃え＆端が丸で終わる） */
#toc_container::before {
  content: "";
  display: block;
  height: 18px;
  width: calc(100% - 66px);
  margin: 0 auto;
  background-image: radial-gradient(circle at center, #f5f7f2 0 7px, #d5d7d2 7px 8px, transparent 8px);
  background-repeat: repeat-x;
  background-size: 34px 100%; /* 穴の間隔（現在と同じ） */
  background-position: center top; /* 中央基準に変更 */
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
}


/* タイトル */
.toc_title {
  color: #959792;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  padding: 3em 1em;
}
/*非表示の文字サイズ*/
.toc_toggle {
	font-size: 0.6em;
	font-weight: normal;
}
/*リスト*/
.toc_list,
.toc_list * {
	list-style: none;
	margin: 0.3em;
	padding: 0;
}

.toc_list {
	margin-top: 0.3em;
	counter-reset: toc-counter;
}

.toc_list a {
	display: block;
	text-decoration: none;
	color: #555; /* リンク色 */
	border-bottom: 1px dotted #ccc; /* リンク下線 */
}

.toc_list > li > a {
	border-bottom: 2px solid #e5e7e2; /* 大見出しの下線 */
	font-size: 110%; /* 大見出しのフォントサイズ */
	font-weight: 520; /* ← 少し太く（通常400～700の範囲で調整可） */
	display: flex;
	align-items: center;
	margin-bottom: 0;
}

.toc_list ul {
	padding: 0.5em 0 0 0.5em;
}

.toc_list li {
	margin-bottom: 0.4em;
	padding-bottom: 0.4em;
	font-size: 0.9em;
}
/* モバイル時の調整（幅768px以下） */
@media (max-width: 768px) {
  #toc_container::before {
    height: 14px;
    width: calc(100% - 60px);
    background-image: radial-gradient(circle at center, #f5f7f2 0 5px, #d5d7d2 5px 6px, transparent 6px);
    background-repeat: repeat-x;
    background-size: 28px 100%;
    background-position: center top;
  }
}