@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

#new{
	margin-bottom: 15px;
}
#new dl{
	overflow: auto;	/*高さ指定を超えるとiframe風にスクロールが出る設定。全部表示させたいならこの行と下のheightの行を削除。*/
	height: 150px;	/*ボックスの高さ*/
	padding-left: 20px;
}
/*日付設定*/
#new dt {
	font-weight: bold;	/*太字にする設定。標準がいいならこの行削除。*/
	float: left;
}
/*記事設定*/
#new dd {
	border-bottom: 1px solid #d2d2d2;	/*下線の幅、線種、色*/
	padding-left: 20%;
}
#new dd img {
	vertical-align: middle;
}
.article h1 {
	text-align: center;
	font-weight: normal;
	padding: 7px 15px;	/*上下、左右への余白*/
	clear: both;
	background-color: #FFEDAA;	/*背景色（古いブラウザだとここの色のみが出ます）*/
	border-radius: 15px;
	border: 1px solid #000000;
}

.article h2 {
	font-weight: normal;
	text-align: center;
}

.article h3 {
	font-weight: normal;
}

.article h4 {
	font-weight: normal;
	text-align: center;
  	border-left: 0px solid var(--cocoon-middle-thickness-color);
  	border-right: 0px solid var(--cocoon-thin-color);
  	border-top: 5px solid #FFEDAA;
  	border-bottom: 2px solid var(--cocoon-thin-color);
	font-size: 22px;
  	padding: 12px 20px;
}
table {
	width: 100%;
	text-align: left;
	vertical-align: middle;
	border: 3px solid #000000;
}
tr, td {
	border: 2px solid #c8c8c8;
}
.list-mb-normal	{
	text-align: center;
	table-layout: fixed;
	border: 3px solid #000000;
}
.list-pc-big	{
	text-align: center;
	height: 30%;
	font-size: 22px;
	table-layout: fixed;
	border: 3px solid #000000;
}

div .line {
  background: url(http://japanese-warship.com/wp-content/uploads/center-line.jpg) repeat-y center center;
  min-height: 10px;
  width: 100%;
}
.back-gray {
	color: black;
	text-align: center;
	background-color: #CFCFCF;
}
.word-red {
	color: #FF3366;
}
.back-red {
	color: #330900;
	text-align: center;
	font-size: 18px;
	background-color: #F5B6C4;
	border: 2px solid #000000;
}
.back-yellow {
	text-align: center;
	font-size: 18px;
	background-color: #FFEDAA;
	border: 3px solid #000000;
}
.back-blue {
	text-align: center;
	font-size: 18px;
	background-color: #ACDDF9;
	border: 2px solid #000000;
}

.post ol li {
	color: black;
	border-left: solid 8px #FFEDAA;/*左側の線*/
	background: #FFFEED;/*背景色*/
	margin-bottom: 5px;/*下のバーとの余白*/
	line-height: 1.5;
	border-radius: 0 15px 15px 0;/*右側の角だけ丸く*/
	padding: 0.5em;
}
#thk_toc_widget-2 {
	overflow-y: auto;
	max-height: 550px;
	}
.toc_number{
	display:none;
}
.accordion-btn {
    cursor: pointer;
	padding: 10px;
	background-color:#FFEDAA;
	font-weight: lighter;
}
.accordion-content p{
    padding: 10px;
	background-color:#FFEDAA;
	font-weight: lighter;	
}
.accordion-btn::after{
    content: '▼';
    float: right;
}
.accordion-btn.open::after{
    content: '▲';
}
/*ページネーション*/
.pagina {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.pagina a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  margin: 5px;
  border: 1px solid lightgray;
  border-radius: 5px;
}

.pagina a.active {
  background-color: #ddd;
}
.pagina a:hover:not(.active) {
  background-color: #FFEDAA;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*480px以下*/
@media screen and (max-width: 480px){
  /*PCでは見せない　スマホで見せる*/
.view-sp{ display: block !important; }
.view-pc{ display: none !important; }
}
/*481px以上*/
@media screen and (min-width: 481px){
  /*PCで見せる　スマホで見せない*/
.view-pc{ display: block !important; }
.view-sp{ display: none !important; }
}

/************************************
** 文章テキパキ⇔くわしくボタン
************************************/
#toggleButton {
  position: fixed;
  font-size: 23px;
  padding: 10px;
  z-index: 9999; /* 他の要素よりも前面に表示 */
}

/* スマートフォン用の場合の追加スタイル */
@media screen and (max-width: 767px) {
  #toggleButton {
    transform: scale(0.85); /* 現在のサイズの85%に縮小 */
  }
}

.textArea, .btn {
  transition: all 0.5s;
}

.textArea {
  display: block;
  max-height: 50000px;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}


.btn {
  text-decoration: none;
  display: inline-block;
  padding: 0.8em 3em;
  background-color: rgba(227, 54, 74, 0.5);
  border: 1px solid #000;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-color: #b70000;
  box-shadow: none;
  transform: translateY(5px);
}
/************************************
**フェードイン表示の停止
************************************/
.container {
animation-name: none;
}
