@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ============================================================
   COSMOS EA - 記事装飾カスタム CSS
   ============================================================ */

/* h2: 左ボーダー + 薄紫背景 */
.entry-content h2.wp-block-heading {
  border-left: 5px solid #6e0072;
  padding: 0.5em 0.8em;
  background: linear-gradient(90deg, rgba(110,0,114,0.07) 0%, transparent 70%);
  border-radius: 0 4px 4px 0;
  margin-top: 2.5rem;
}

/* h3: 2色ボーダー下線 */
.entry-content h3.wp-block-heading {
  padding-bottom: 0.35em;
  border-bottom: 3px solid #6e0072;
  position: relative;
  margin-top: 1.8rem;
}
.entry-content h3.wp-block-heading::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30%;
  border-bottom: 3px solid #b040b4;
}

/* テーブル: ヘッダーをメインカラーに */
.entry-content .wp-block-table thead th {
  background-color: #6e0072;
  color: #fff;
  font-weight: 700;
}
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: rgba(110,0,114,0.04);
}
.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
  border: 1px solid #e0e0e0;
  padding: 0.55em 0.8em;
}

/* ⚠️警告段落: 黄色ボックス（JS連携） */
.cosmos-warning {
  background: #fff8e1;
  border-left: 4px solid #f09800;
  padding: 0.75em 1em;
  border-radius: 0 4px 4px 0;
  margin: 1.5em 0;
}

/* strong: 濃い紫 */
.entry-content strong {
  color: #4a004e;
}

/* ============================================================
   COSMOS EA - 追加装飾 CSS (round 2)
   ============================================================ */

/* リスト: 紫矢印マーカー */
.entry-content .wp-block-list {
  padding-left: 0;
  list-style: none;
}
.entry-content .wp-block-list li {
  position: relative;
  padding: 0.35em 0.5em 0.35em 1.8em;
  margin-bottom: 0.45em;
  border-radius: 3px;
}
.entry-content .wp-block-list li::before {
  content: '▷';
  color: #6e0072;
  font-size: 0.75em;
  position: absolute;
  left: 0.4em;
  top: 0.55em;
}

/* 段落スペーシング */
.entry-content .wp-block-paragraph {
  margin-bottom: 1.4em;
  line-height: 1.9;
}

/* h4 */
.entry-content h4.wp-block-heading {
  border-left: 4px solid #b040b4;
  padding-left: 0.7em;
  margin-top: 1.4rem;
  color: #4a004e;
}

/* ボタン: ホバーでリフトアップ */
.entry-content .wp-block-button__link {
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.entry-content .wp-block-button__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(110,0,114,0.28) !important;
}

/* 記事カード: ホバーでリフトアップ */
.p-postList__link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.p-postList__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================================
   目次 (Easy Table of Contents) カスタム
   ============================================================ */

/* ボックス全体 */
#ez-toc-container {
  background: linear-gradient(135deg, rgba(110,0,114,0.05) 0%, #fff 60%);
  border: 2px solid #6e0072;
  border-radius: 8px;
  padding: 1.2em 1.5em 1.2em 1.5em;
  margin: 2em 0;
  box-shadow: 0 2px 12px rgba(110,0,114,0.1);
}

/* タイトル行 */
#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(110,0,114,0.2);
  padding-bottom: 0.6em;
  margin-bottom: 0.8em;
}
#ez-toc-container p.ez-toc-title {
  color: #6e0072 !important;
  font-weight: 700 !important;
  font-size: 0.95em !important;
  margin: 0 !important;
}

/* リンク色 */
#ez-toc-container .ez-toc-link {
  color: #4a004e !important;
  text-decoration: none !important;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}
#ez-toc-container .ez-toc-link:hover {
  color: #6e0072 !important;
  padding-left: 4px;
}

/* リスト整理 */
#ez-toc-container nav > ul {
  padding-left: 0;
  margin: 0;
}
#ez-toc-container nav ul {
  padding-left: 1.2em;
}
#ez-toc-container nav ul li {
  margin-bottom: 0.3em;
  padding: 0 !important;
  border-radius: 0 !important;
}
/* 先ほど追加した ▷ マーカーを目次内では非表示 */
#ez-toc-container nav ul li::before {
  display: none !important;
}

/* h3レベルは少し小さく薄く */
#ez-toc-container .ez-toc-list-level-3 .ez-toc-link {
  font-size: 0.88em;
  color: #777 !important;
  padding-left: 0.3em;
}
#ez-toc-container .ez-toc-list-level-3 .ez-toc-link:hover {
  color: #6e0072 !important;
}
