@charset "UTF-8";

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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ----- アイキャッチ：縦長・横長の画像も16:9にそろえる ----- */
.eye-catch img,
.eye-catch-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* ----- 記事一覧・関連記事のサムネイルも同じ比率に ----- */
.entry-card-thumb img,
.related-entry-card-thumb img,
.widget-entry-card-thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ----- 本文の読みやすさ（行間・段落の間隔を広めに） ----- */
.entry-content p {
  line-height: 2;
  margin-bottom: 1.8em;
}

.entry-content h2 {
  margin-top: 3em;
  margin-bottom: 1.4em;
}

.entry-content h3 {
  margin-top: 2.4em;
  margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.8em;
}

.entry-content li {
  line-height: 1.9;
  margin-bottom: 0.6em;
}

/* ----- 参考情報のボックス ----- */
.entry-content .nazo-refs {
  margin: 3.5em 0 2em;
  padding: 1.4em 1.6em 1.2em;
  background: #f7f6fc;
  border: 1px solid #e3e0f3;
  border-radius: 10px;
}

.entry-content .nazo-refs h2 {
  margin: 0 0 0.9em;
  padding: 0 0 0.6em;
  background: none;
  border: none;
  border-bottom: 2px solid #8a7bd8;
  border-radius: 0;
  color: #4a3f8c;
  font-size: 1.05em;
  letter-spacing: 0.05em;
}

.entry-content .nazo-refs h2::before,
.entry-content .nazo-refs h2::after {
  display: none;
}

.entry-content .nazo-refs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content .nazo-refs li {
  position: relative;
  margin: 0;
  padding: 0.55em 0 0.55em 1.2em;
  border-bottom: 1px dashed #dcd8ee;
  font-size: 0.85em;
  line-height: 1.6;
}

.entry-content .nazo-refs li:last-child {
  border-bottom: none;
}

.entry-content .nazo-refs li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a7bd8;
}

.entry-content .nazo-refs a {
  color: #555;
  text-decoration: none;
  word-break: break-word;
}

.entry-content .nazo-refs a:hover {
  color: #6b5cc8;
  text-decoration: underline;
}

/* ----- 画像のクレジット ----- */
.entry-content .nazo-credit {
  margin: 1.5em 0 0;
  padding: 0.8em 1em;
  border-left: 3px solid #cfcadf;
  background: #fafafa;
  color: #888;
  font-size: 0.75em;
  line-height: 1.7;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  .entry-content p {
    line-height: 1.9;
    margin-bottom: 1.6em;
  }

  .entry-content .nazo-refs {
    padding: 1.1em 1.1em 0.9em;
  }
}