@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.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
@charset "UTF-8";
:root {
  --text-main:#1c1a1a;
  --bg5:#f0f0f0;
  --bg4:rgb(244, 244, 244);
  --bg3:#fff;
  --bg2:#ffffff;
  --bg1:#ebebeb;
  --bg1-on:#f0f8ffea;
  --underline-blue:#a8dafb;
  --underline-red:#ffd0d1;
  --underline: #ff9;
  --bg-header-a: #fafad2;
  --bg-header-b: #f2f2f2;
  --border-header-b: khaki;
  --bg-index: #f2f2f2;
}

/* PCの設定でダークモードを選択した場合のスタイリング */
@media (prefers-color-scheme: dark) {
  :root {
    --text-main: #faf8f7;
    --bg5:#42505e;
    --bg4:#1c1a1a;
    --bg3:#242529;
    --bg2:#2d343a;
    --bg1:#42505e;
    --bg1-on:#313c46bd;
    --underline-blue: #234794 ;
    --underline:rgba(255, 255, 0, 0.801);
    --underline-red:#ff2f33;
    --bg-header-a: goldenrod;
    --bg-header-b: #e6d70f81;
    --border-header-b: goldenrod;
    --bg-index: #e2de1134;
  }
}

/* 目次(記事本文のみ。ウィジェット側は変更なし。) */
#toc {
  background-color: var(--bg-index);
}


/*見出し*/
.article h2,
.sidebar h2,
.sidebar h3 {
  background-color: var(--bg-header-a) !important;
}

.article h3 {
  background-color: var(--bg-header-b) !important;
  border: 2px solid var(--border-header-b) !important;
  border-radius: 4px !important;
}

.article h4,
.article h5,
.article h6 {
  border-bottom: 2px solid var(--border-header-b) !important;
  padding: 0.5rem;
  /* background-color: var(--bg-header-b) !important; */
  /* border-radius: 4px !important; */
}

/* 改ページリンクの設定 */
.page-numbers {
  background-color: var(--bg-header-b) !important;
}

/* codeブロックは自動改行しない設定 */
.wp-block-code code {
  white-space: pre;
  overflow: auto;
}

/* codeブロック以外のcodeの設定 */
code:not(.wp-block-code code) {
  color: #000000;
  background-color: #f0f0f0;
  line-height: 150%;
  text-align: left;
  margin-bottom: 10px;
  padding: 3px;
}

/* アイコンボックスブロックの設定 */
.information-box {
  background-color: var(--bg1);
}

/* コメントの設定 */
.comment-form-email, .comment-form-url, .comment-notes {
  display: none;
}

/* コメント欄の見た目を調整 */
/* コメント欄全体の枠線 */
.comment-list {
  border: 2px solid #ffd700;
  padding: 0;
  border-radius: 10px 10px 0 0;
}
.comment-title {
  margin: 0;
  font-size: 24px;
  background: #ffd700;
  color: #000;
  padding-left: 20px;
  font-weight: normal;
}
.comment-title:before {
  font-family: FontAwesome;
  content: '\f27b';
  color: #000;
  margin-right: 4px;
}
.commets-list {
  padding: 20px 20px 0 20px;
}
.commets-list > li {
  border-top: 2px dashed #ffd700;
  margin: 30px 0;
  padding-top: 20px;
}
.commets-list > li:first-child {
  border: none;
  margin-top: 0;
  padding-top: 0;
}
.commets-list .children {
  border-left: 2px solid #ccc;
  margin: 0;
}
.commets-list .avatar {
  float: left;
  border-radius: 50%;
  margin-right: 10px;
}
.st-comment-content {
  color: #1c1a1a;
  background: #e2e2e2;
  padding: 2px 10px;
  margin: 20px 0 6px 0;
  border-radius: 10px;
  position: relative;
}
.st-comment-content::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50px;
  border-style: solid;
  border-color: transparent transparent #e2e2e2 transparent;
  border-width: 0 20px 20px 0;
}
.st-comment-content p {
  font-size: 14px;
  margin: 1em 0;
  line-height: 1.5em;
}
.comment-reply-link {
  color: #fff;
  border: none;
  border-radius: 20px;
  background: #ffd700;
  padding: 1px 12px;
  transition: 0.5s;
}
.comment-reply-link:hover {
  color: #fff;
  background: #ffd700;
  transition: 0.5s;
}
.commets-list .st-comment-body {
  margin-bottom: 0;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/************************************
** BeamNGブラックリスト用のstyle
************************************/
.beamng-blacklist-ranking-header {
  color:rgba(0,0,0,0.7);
  background-color: lime;
  font-family: "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  font-weight: bold;
  font-size: larger;
  text-align: left;
  padding-left: 10px;
}
.beamng-blacklist-bottom-dotted-border {
  border-bottom: lime dotted;
}
.beamng-blacklist-category-header {
  font-family: "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  font-weight: bold;
  font-size: larger;
  text-align: left;
  border-top: lime dotted;
  border-bottom: lime dotted;
}
.beamng-blacklist-ranking-table {
  margin-left: auto;
  margin-right: auto;
}

.beamng-blacklist-category-anchor a {
  color:lime;
  text-decoration: none;
}
.beamng-blacklist-category-anchor a:hover {
  color: #e53900;
  text-decoration: none;
}


.beamng-blacklist-category-link-area {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
}

.beamng-blacklist-category-link-area a {
  color: rgba(0,0,0,0.7);
  background-color: lime;
  border: 2px solid rgba(0,0,0,0.7);
  border-radius: 4px !important;
  text-decoration: none;
  padding: 5px 10px 5px 10px;
  line-height: 1.3;
}
.beamng-blacklist-category-link-disable-buttton {
  color: white;
  background-color: green;
  border: 2px solid rgba(0,0,0,0.7);
  border-radius: 4px !important;
  text-decoration: none;
  padding: 5px 10px 5px 10px;
  line-height: 1.3;
}

.beamng-blacklist-category-link-area a:hover {
  color: white;
  background-color: green;
}

.beamng-blacklist-category-link-text {
  font-size: 14px;
  font-weight: bold;
}

.beamng-blacklist-register-button button {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
  color: rgba(255, 255, 255);
  background-color: orange;
  border: 2px solid rgba(255,255,255);
  border-radius: 4px !important;
  text-decoration: none;
  margin-top: 10px;
  padding: 5px 10px 5px 10px;
  line-height: 1.3;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.beamng-blacklist-notice {
  font-size: small;
  color: red;
  line-height: 1.2;
}

.beamng-blacklist-summary {
  color: rgba(255,255,255,1.0);
  background-color: rgba(0, 255, 0, 0.5);
  border: 2px solid rgba(0,0,0,0.7);
  padding: 5px 10px 5px 10px;
  line-height: 1.3;
}


/* 
ブラックリストランキングの各行列全体に適用するCSS
nth-of-typeの方が強いのでtrだけだとすべての行に適用されない
*/
.beamng-blacklist-ranking-table tr:nth-of-type(n),
.beamng-blacklist-ranking-table tr th,
.beamng-blacklist-ranking-table tr td {
  text-align:center;
  color:lime;
  background-color: rgba(0,0,0,0.7);
  font-family: "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  white-space: nowrap;
}

/* ブラックリストサマリランキングの1列目に適用するCSS */
.beamng-blacklist-summary-ranking-table th:nth-child(1),
.beamng-blacklist-ranking-table td:nth-child(1) {
  text-align: left;
}

/* カテゴリ別ブラックリストの各列に適用するCS */
.beamng-blacklist-category-lifetime-pursuit-ranking-table th:nth-child(1),
.beamng-blacklist-category-lifetime-pursuit-ranking-table td:nth-child(1) {
  text-align: left;
}
.beamng-blacklist-category-lifetime-pursuit-ranking-table th:nth-child(2),
.beamng-blacklist-category-lifetime-pursuit-ranking-table td:nth-child(2) {
  text-align: left;
}
.beamng-blacklist-category-lifetime-pursuit-ranking-table th:nth-child(3),
.beamng-blacklist-category-lifetime-pursuit-ranking-table td:nth-child(3) {
  text-align: right;
}

.beamng-blacklist-category-single-pursuit-ranking-table th:nth-child(1),
.beamng-blacklist-category-single-pursuit-ranking-table td:nth-child(1) {
  text-align: left;
}
.beamng-blacklist-category-single-pursuit-ranking-table th:nth-child(2),
.beamng-blacklist-category-single-pursuit-ranking-table td:nth-child(2) {
  text-align: left;
}
.beamng-blacklist-category-single-pursuit-ranking-table th:nth-child(3),
.beamng-blacklist-category-single-pursuit-ranking-table td:nth-child(3) {
  text-align: left;
}
.beamng-blacklist-category-single-pursuit-ranking-table th:nth-child(4),
.beamng-blacklist-category-single-pursuit-ranking-table td:nth-child(4) {
  text-align: right;
}

/*--------------------------------------
  tab
  参考: https://nekopress.castelodelego.org/wordpress/tab/
--------------------------------------*/
.tab-wrap{
  margin-bottom: 40px;
}
.tab-group{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
}
.tab{
  flex-grow: 1;
  background: #58A9EF;
  border-radius: 10px 10px 0 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  margin: 0 5px;
  padding: 14px 0 12px;
  text-align: center;
  transition: 1s;
  vertical-align: bottom;
}
.panel-group{
  min-height:100px;
  border:solid 1px #CCC;
  border-top: 8px solid #C8E4FF;
  padding: 10px;
}
.panel{
  display:none;
}
.tab.is-active{
  color:#FFF;
  transition: 1s;
  opacity: 0.6;
  padding-bottom: 20px;
}
.panel.is-show{
  display:block;
}

@media screen and (max-width:480px) { 
  .tab{
      padding: 10px 0 7px;
  }
  .tab.is-active{
      padding-bottom: 15px;
  }
}