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

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

/* サイドバーのプロフィールを中央揃え */
.nwa .author-box .author-description {
  text-align: center;
}

/* ==================================================
   ▼ カスタム引用ボックス
   ================================================== */
.custom-quote {
  position: relative;
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: #555 !important;
  padding: 1.8em 1.2em 1.5em 1.5em !important;
  margin: 1.2em 0 !important;
  border-left: 4px solid #ccc !important;
  background-color: #fafafa !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
}

/* ダブルクォーテーション */
.custom-quote::before {
  content: "“";
  position: absolute;
  top: 0.1em;
  left: 0.1em;
  font-size: 2.5rem;
  color: #ccc;
  line-height: 1;
}
.custom-quote::after {
  content: "”";
  position: absolute;
  bottom: 0.1em;
  right: 0.1em;
  font-size: 2.5rem;
  color: #ccc;
  line-height: 1;
}

/* 本文 */
.custom-quote p { margin: 0.4em 0 !important; }

/* リンク */
.custom-quote a {
  color: #555 !important;
  font-size: 0.95rem !important;
  text-decoration: underline !important;
}
.custom-quote a:hover { color: #333 !important; }

/* 著者名 */
.custom-quote cite {
  display: block !important;
  font-size: 0.85rem !important;
  color: #777 !important;
  margin-top: 0.4em !important;
  text-align: right !important;
  padding-right: 2.5em !important;
  font-style: normal !important;
}

/* cite 内リンク */
.custom-quote cite a {
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .custom-quote {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    padding: 1.8em 1em 1.5em 1em !important;
  }
  .custom-quote cite {
    font-size: 0.9rem !important;
    padding-right: 2.2em !important;
  }
  .custom-quote::before,
  .custom-quote::after {
    font-size: 2rem;
  }
}

/* ==================================================
   ▼ H1 見出し装飾
   ================================================== */
.entry-header .entry-title {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #555;
  text-align: center;
  margin: 1.8em 0;
  padding: 0.6em 0;
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  background-image: 
    linear-gradient(0deg, rgba(0,0,0,0.015) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.015) 2px, transparent 2px);
  background-size: 24px 24px;
}

/* スマホ用 H1 調整 */
@media (max-width: 768px) {
  .entry-header .entry-title {
    font-size: 1.5rem;
    padding: 0.5em 0;
    margin: 1.3em 0;
    border-top-width: 1.5px;
    border-bottom-width: 1.5px;
    background-size: 20px 20px;
  }
}

