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

/************************************
** 全体スタイル（ベースフォント・色）
************************************/
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #333;
  background-color: #ffffff;
}

/************************************
** 見出しデザイン
************************************/
h1, h2 ,h3 {
  font-family: 'Noto Serif JP', serif;
}

/* h1：トップや記事タイトル用 */
.article h1 {
  font-size: 2.2em;
  font-weight: 700;
  padding-bottom: 0.2em;
  border-bottom: 4px solid #2196f3;
  margin-bottom: 1em;
  color: #222;
}

/* h2：セクション見出し */
.article h2 {
  font-size: 1.8em;
  padding: 0.6em 0.8em;
  background: #e3f2fd;
  border-left: 6px solid #2196f3;
  color: #222;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

/* h3：小見出し */
.article h3 {
  font-size: 1.4em;
  padding-left: 0.6em;
  border-left: 4px solid #64b5f6;
  color: #333;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

/************************************
** ボタンスタイル
************************************/
.button,
a.btn,
input[type="submit"],
button {
  background-color: #42A5F5;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover,
a.btn:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #1E88E5;
  cursor: pointer;
}

/************************************
** リスト（ul/li）を見やすく
************************************/
.article ul {
  font-size: 16px;
  line-height: 1.8;
  list-style-type: disc;
  /* margin-left: 1.4em; */
}

.article li {
  margin-bottom: 0.6em;
}

/************************************
** セクションの余白をゆったり
************************************/
.section {
  padding: 60px 0;
}

/************************************
** レスポンシブデザイン（モバイル対応）
************************************/

/* タブレット以下（1023px） */
@media screen and (max-width: 1023px){
  body {
    font-size: 17px;
  }
  .button,
  input[type="submit"],
  button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* iPad mini相当以下（834px） */
@media screen and (max-width: 834px){
  .alignright {
    width: 40%;
  }
  .article h1 { font-size: 1.8em; }
  .article h2 { font-size: 1.6em; }
  .article h3 { font-size: 1.3em; }
}

/* スマホサイズ（480px） */
@media screen and (max-width: 480px){
  body {
    font-size: 16px;
  }
}

/************************************
** 既存の独自CSS（削除せず尊重）
************************************/

/* ログイン画面のロゴを非表示にする */
#login h1 a {
  display: none !important;
}

#appeal {
    height: calc(100vw * calc(713 / 1180));
}

.post-date {
  display: none;
}

fieldset {
	border:none;
}

.handwriting {
  font-family: 'Kiwi Maru', serif;
}

.ancr-inner a {
  text-decoration: underline !important;
}


/* --- TOC（目次）見た目改善用スタイル --- */
.toc.toc-center {
  margin: 2rem auto;
  max-width: 100%;
  text-align: left !important;
  border: 1px solid #eee;
  padding: 1rem 1.5rem;
  background: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.toc .toc-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #f97316; /* Tailwindのorange-500相当 */
  margin-bottom: 0.5rem;
  display: block;
}

.toc .toc-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.toc .toc-list li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.toc .toc-list li::before {
  content: \"→\";
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: bold;
}

.toc a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: #f97316;
}

/* 全体を左寄せにし、矢印アイコン追加（階層に応じて） */

.toc.toc-center {
  text-align: left !important;
}

/* H2項目（第1階層） */
.toc .toc-list > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}
.toc .toc-list > li::before {
  content: \"▶\" !important;
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #f97316;
  font-weight: bold;
  font-size: 1rem;
}

/* H3項目（第2階層） */
.toc .toc-list > li > ol > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.4em;
}
.toc .toc-list > li > ol > li::before {
  content: \"▸\" !important;
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #fb923c;
  font-weight: normal;
  font-size: 0.95rem;
}

.toc.toc-center .toc-list > li::before {
  content: "▶" !important;
}
.toc.toc-center .toc-list > li > ol > li::before {
  content: "▸" !important;
}

.no-border-h3 {
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  padding-left: 0 !important;
}

.trouble-section h3 {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
	margin-top:1em;
}


.trouble-section h2 {
	margin-top:0px !important;
	background:none;
	border-left:none;
}

@media screen and (max-width: 834px) {
  .article ul.my-custom-ul {
    padding-left: 0 !important;
  }
}


