@charset "UTF-8";

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

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

/* 見出しデザインのリセット */
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
background: none;
border-right: 0;
border-bottom: 0;
border-top: 0;
border-left: 0;
padding: 0;
}


/* 見出し2 */
.article h2 {
  font-size: 2rem; /* ちょっと大きめ */
  text-align: center;
  position: relative;
  padding: 1.5em 0; /* 上下の余白たっぷり */
  color: #2c3e50; /* サイトの濃い青系カラー */
  border-top: 3px solid #f2c94c; /* 黄色ライン */
  border-bottom: 3px solid #f2c94c;
}

/* 見出し3 */
.article h3 {
  font-size: 1.6rem; /* h2より少し小さめ */
  position: relative;
  padding-left: 2.2em; /* ✈️マークのスペースを確保 */
  margin-top: 2em; /* 上との間隔 */
  margin-bottom: 1em;
  color: #2c3e50; /* 同じ濃い青 */
}

/* 見出し3の✈️アイコン */
.article h3::before {
  content: "✈️";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.4rem; /* 本文より気持ち小さめ */
}

/* 見出し3の二重アンダーライン */
.article h3::after {
  content: "";
  position: absolute;
  left: 2.2em;
  right: 0;
  bottom: -0.4em;
  height: 4px;
  border-top: 2px solid #f2c94c;
  border-bottom: 2px solid #f2c94c;
}

h3::before {
  display: inline-block;
  margin-right: 0.5em;
  animation: flyaway 2s infinite alternate ease-in-out;
}

@keyframes flyaway {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(15px) translateY(-5px);
  }
}


.article h4 {
  position: relative;
  padding-left: 1.5em; /* ●マーク分のスペース */
  font-size: 1.2rem; /* h2 > h3 > h4の順で小さく */
  color: #2c3e50; /* サイトカラーに合わせた濃青 */
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px dotted #f2c94c; /* ドット線の下線（黄色系） */
}

/* ●マーク */
.article h4::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #f2c94c; /* ニヤ界イエローに合わせたカラー */
  font-size: 0.8em;
}

/* 見出し5（h5） */
.article h5 {
  font-size: 1.1em;
  font-weight: normal;
  color: #223366; /* サイトカラーの濃い青 */
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1em;
  border-bottom: 1px dotted #ffc107; /* 細めのドット線でゴールド */
}

.article h5::before {
  content: '✴︎';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
  color: #ffc107; /* ゴールド */
}

/* 見出し6（h6） */
.article h6 {
  font-size: 1em;
  font-weight: normal;
  color: #667799; /* ちょいグレーがかった青 */
  margin-bottom: 0.5em;
  padding-left: 1.8em;
  position: relative;
}

.article h6::before {
  content: '📎';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
}

/* 見出し3（✈️） 少し左寄せ */
.article h3 {
  display: flex;
  align-items: center;
  font-size: 1.4em;
  margin-left: 0.5em; /* 左に寄せる調整 */
  position: relative;
  padding-bottom: 0.5em;
}

/* アイコンと文字の間にスペース */
.article h3::before {
  content: "✈️";
  margin-right: 0.4em;
  font-size: 1.2em;
}

/* 見出し4〜6（⚫︎✴︎📎） 少し右寄せ */
.article h4, .article h5, .article h6 {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  margin-left: 1.5em; /* 右に寄せる調整 */
  position: relative;
  padding-bottom: 0.3em;
  border-bottom: dotted 2px #f0c847;
}

/* 見出し4アイコン */
.article h4::before {
  content: "⚫︎";
  margin-right: 0.4em;
  font-size: 1em;
  color: #f0c847;
}

/* 見出し5アイコン */
.article h5::before {
  content: "✴︎";
  margin-right: 0.4em;
  font-size: 1em;
  color: #f0c847;
}

/* 見出し6アイコン */
.article h6::before {
  content: "📎";
  margin-right: 0.4em;
  font-size: 1em;
  color: #8ca0b6;
}


.article p {
  font-size: 1.05em; /* ほんの少し大きめで読みやすく */
  line-height: 1.8; /* 行間たっぷりめで呼吸感UP */
  letter-spacing: 0.05em; /* 文字間もほんのり広げて上品に */
  color: #333333; /* 真っ黒じゃなくて目に優しい濃グレー */
  margin-top: 1em;
  margin-bottom: 1em;
}


/* 目次変更 */

/* 目次タイトルの絵文字を変更 */
.toc-title::before {
    content: "😈 "; /* ←ここを好きな絵文字に変えられる！ */
    font-size: 1.2em;
}


.niyakaitsuushin {
  border: 2px solid gold;
  border-radius: 15px;
  padding: 20px;
  background: #fffef8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin: 20px 0;
}
.niyakaitsuushin h2 {
  text-align: center;
  font-size: 1.4em;
  color: #b8860b; /*ゴールド系文字色*/
  margin-bottom: 10px;
}

#stampArea {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 2px dashed #00a0e9;
  border-radius: 10px;
  background-color: #f0f8ff;
}

#stampButton {
  background-color: #00a0e9;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

#stampButton:hover {
  background-color: #0080c0;
}

#omikujiArea {
  border: 3px dashed #ffcc00;
  border-radius: 15px;
  background-color: #fff8dc;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

#omikujiArea img {
  width: 50%;
  max-width: 300px;
  margin-bottom: 15px;
}

#drawOmikuji:hover {
  background-color: #0080c0;
}

/* フワッと表示アニメーション */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.niyakai-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.niyakai-menu .menu-btn {
  display: block;
  padding: 14px 22px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #d4af37, #f7e7b5);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.niyakai-menu .menu-btn:hover {
  background: linear-gradient(90deg, #f7e7b5, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}





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

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

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