/*
Theme Name: My Theme
Theme URI: 
Author: 
Author URI: 
Description: ハピネスネットオリジナルテーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: my-wavy-theme
*/

/* =========================================
   CSS カスタムプロパティ（変数）
========================================= */
:root {
    --main-color: #F43676;
    --gradient-start: #FC6668;
    --gradient-end: #E10489;
    --gradient: linear-gradient(103deg, #FC6668 0%, #E10489 100%);
    --title-color: #302D55;
    --black: #002050;
    --bg-color: #fff;
    --section-color: #FFF9F3;
    --box-bg: #FFF9F3;
    --box-border: #FFE7D2;
    --border-color: #E6EDF6;
    --text-muted: #4D6385;
    --border-radius: 15px;
    --font-main: 'Zen Maru Gothic', sans-serif;
    --shadow-sm: 2px 2px 3px 0px rgba(93,112,234,0.1);
    --shadow-md: 0px 8px 16px -8px rgba(0,0,0,0.30), 0px 13px 27px -5px rgba(50,50,93,0.25);
}

/* =========================================
   リセット & ベース
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
    background-color: var(--bg-color);
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: color 300ms ease;
}

a:hover {
    color: var(--main-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.4;
}

/* =========================================
   レイアウト
========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    position: relative;
}

/* メインコンテンツ＋サイドバー */
.content-area {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    padding: 0 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    flex: 1;
    min-width: 0;
}

article{
    padding: 10px 60px;
  }

/* =========================================
   ヘッダー
========================================= */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ロゴ */
.site-logo a {
    display: inline-block;
    color: var(--title-color);
    font-size: 24px;
    font-weight: 900;
    transition: transform 300ms ease;
}

.site-logo a:hover {
    transform: translateY(-2px);
    color: var(--title-color);
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* ナビゲーション */
.main-navigation ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 8px 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    border-radius: 6px;
    transition: all 300ms ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: var(--main-color);
}

/* ドロップダウン */
.main-navigation ul li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 3px 12px -1px rgba(7,10,25,0.15), 0 22px 27px -20px rgba(7,10,25,0.2);
    z-index: 200;
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover > .sub-menu {
    display: flex;
}

.main-navigation ul li .sub-menu li a {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0;
}

.main-navigation ul li .sub-menu li a:hover {
    color: var(--main-color);
    background: var(--box-bg);
}

/* ハンバーガー（モバイル） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
    transition: all 300ms ease;
}

/* =========================================
   ボタン
========================================= */
.btn,
.btn-gradient {
    display: inline-block;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    background: var(--gradient);
    text-align: center;
}

.btn:hover,
.btn-gradient:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   サイドバー
========================================= */
#sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--title-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--box-border);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

/* About ウィジェット */
.widget-about .author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.widget-about .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.widget-about .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-about .author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
}

.widget-about .author-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.widget-about .author-bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* カテゴリーウィジェット */
.widget_categories ul li,
.widget_archive ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--box-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.widget_categories ul li:last-child,
.widget_archive ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget_categories ul li a,
.widget_archive ul li a {
    color: var(--black);
    font-weight: 500;
}

.widget_categories ul li a:hover,
.widget_archive ul li a:hover {
    color: var(--main-color);
}

.widget_categories ul li .cat-count {
    background: var(--gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 人気記事ウィジェット */
.widget-posts .post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--box-border);
}

.widget-posts .post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-posts .post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.widget-posts .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.widget-posts .post-thumb:hover img {
    transform: scale(1.05);
}

.widget-posts .post-info {
    flex: 1;
    min-width: 0;
}

.widget-posts .post-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 5px;
}

.widget-posts .post-title a {
    color: var(--title-color);
}

.widget-posts .post-title a:hover {
    color: var(--main-color);
}

.widget-posts .post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* タグクラウド */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px !important;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--black);
    transition: all 300ms ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* 検索ウィジェット */
.widget_search form {
    display: flex;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
}

.widget_search .search-submit {
    padding: 10px 18px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-main);
    transition: opacity 300ms ease;
}

.widget_search .search-submit:hover {
    opacity: 0.85;
}

/* =========================================
   フッター
========================================= */
#site-footer {
    background: var(--box-bg);
    border-top: 1px solid var(--box-border);
    margin-top: 80px;
    padding: 60px 0 0;
}


.footer-widget-area .widget-title {
    font-size: 17px;
    margin-bottom: 20px;
}

/* フッター購読フォーム */
.footer-subscribe .site-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-subscribe .subscribe-form {
    display: flex;
}

.footer-subscribe .subscribe-form input[type="email"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
}

.footer-subscribe .subscribe-form button {
    padding: 10px 18px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    white-space: nowrap;
}

/* フッターナビ */
.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 300ms ease;
}

.footer-nav ul li a:hover {
    color: var(--main-color);
}

/* フッター記事リスト */
.footer-posts .post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--box-border);
}

.footer-posts .post-item:last-child {
    border-bottom: none;
}

.footer-posts .post-thumb {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-posts .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-posts .post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.footer-posts .post-title a {
    color: var(--title-color);
}

.footer-posts .post-title a:hover {
    color: var(--main-color);
}

/* フッターボトム */
.footer-bottom {
    border-top: 1px solid var(--box-border);
    padding: 20px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--main-color);
}

/* =========================================
   記事（index.php用）
========================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.post-card .card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.post-card:hover .card-thumb img {
    transform: scale(1.05);
}

.post-card .card-body {
    padding: 20px;
}

.post-card .card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-card .card-title a {
    color: var(--title-color);
}

.post-card .card-title a:hover {
    color: var(--main-color);
}

.post-card .card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-card .card-footer {
    display: flex;
    justify-content: flex-end;
}

/* ページネーション（ul/li構造対応） */
.pagination {
  margin-top: 40px;
  text-align: center;
}

/* ul（横並び） */
.pagination > ul.page-numbers{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  list-style: none;
  padding: 0;
  margin: 0;
}

/* li */
.pagination > ul.page-numbers > li{
  margin: 0;
  padding: 0;
}

/* ボタン本体（a/spanだけ） */
.pagination a.page-numbers,
.pagination span.page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 42px;
  padding: 0 16px;

  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  color: var(--black);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 300ms ease;
}

/* hoverはaだけ */
.pagination a.page-numbers:hover{
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* current（span） */
.pagination span.page-numbers.current{
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* =========================================
   レスポンシブ
========================================= */
@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .footer-subscribe {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background: #fff;
        padding: 60px 20px 20px;
        box-shadow: var(--shadow-md);
        overflow-y: auto;
        z-index: 300;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li a {
        padding: 12px 10px;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .main-navigation ul li .sub-menu {
        position: relative;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 15px;
    }

    .menu-toggle {
        display: block;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }

    .footer-subscribe {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 20px;
    }
}
/* ===== lesson グリッド ===== */
.posts-grid {
  display: grid;
  gap: 24px;
}

/* 教材グリッド：columns="3" */
.posts-grid.columns-3{
  grid-template-columns: repeat(3, 1fr) !important;
}

/* タブレット */
@media (max-width: 900px){
  article {
    padding: 5px;
}
  .posts-grid.columns-3{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* スマホ */
@media (max-width: 600px){
  article {
    padding: 3px;
}
  .posts-grid.columns-3{
    grid-template-columns: 1fr !important;
  }
}

/* ===== カード画像サイズを統一 ===== */
.post-card .card-thumb {
  display: block;
  aspect-ratio: 1 / 1;   /* ← 正方形に固定 */
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.post-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← 中央トリミング */
  display: block;
}

.post-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

/* ===== フッターウィジェット均等配置 ===== */

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

.footer-widget-area {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
}

/* スマホ対応（縦並び） */
@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }
}

/* ===== カードの高さを揃えてボタンを下固定 ===== */

.post-card {
  display: flex;
  flex-direction: column;
}

/* 本文エリアを伸ばす */
.post-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 説明文が可変でもOK */
.post-card .card-excerpt {
  flex: 1;
}

/* ボタンを下に押し出す */
.post-card .card-footer {
  margin-top: auto;
}

/* 教材カード行数制限 */
.post-card .card-excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== NEWバッジ ===== */
/* 画像の上にNEWを重ねる */
.post-card .card-thumb{
  position: relative;
}

.post-card .badge-new{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;

  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;

  background: linear-gradient(45deg,#ff7aa2,#ff4d6d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;

  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
/* =========================================
   Single Lesson ページ
========================================= */

/* アイキャッチ */
.single-featured-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.single-thumb-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
}

/* タイトル・メタエリア */
.single-info {
    text-align: center;
    margin-bottom: 40px;
}

.single-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--title-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-weight: 600;
}

.meta-author:hover {
    color: var(--black);
}

.author-avatar-img {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-sm);
    display: block;
}

.author-by {
    color: var(--text-muted);
    font-weight: 400;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.meta-readtime {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    margin-left: 10px;
}

.meta-readtime svg {
    stroke: var(--text-muted);
}

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--main-color);
    vertical-align: middle;
    margin: 0 4px;
}

.meta-dot.small {
    width: 3px;
    height: 3px;
}

/* 記事本文 */
.single-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--black);
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: var(--border-radius);
    padding: 50px 60px;
    margin-bottom: 40px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    font-weight: 800;
    color: var(--title-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-content h2 { font-size: 26px; }
.single-content h3 { font-size: 22px; }
.single-content h4 { font-size: 18px; }

.single-content p {
    margin-bottom: 20px;
}

.single-content a {
    color: var(--main-color);
    font-weight: 700;
}

.single-content a:hover {
    color: var(--black);
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 10px 0 20px;
}

.single-content ul,
.single-content ol {
    margin: 0 0 20px 30px;
}

.single-content li {
    margin-bottom: 8px;
}

.single-content blockquote {
    padding: 30px 30px 30px 50px;
    border-left: 4px solid var(--main-color);
    background: var(--bg-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    margin: 20px 0;
    color: var(--text-muted);
}

/* ページ分割ナビ */
.single-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 10px;
    margin-bottom: 30px;
}

.pages-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
    margin-right: 5px;
}

.single-pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    border: 1px solid var(--border-color);
    transition: all 300ms ease;
    text-decoration: none;
}

.single-pagination a .page-num:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.single-pagination b .page-num,
.single-pagination span.current .page-num {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* タグ・最終更新日 */
.single-bottom-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 0;
    border-top: 2px solid var(--border-color);
    margin-bottom: 40px;
    font-size: 14px;
}

.bottom-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cats-label {
    font-weight: 600;
    color: var(--black);
}

.cat-link {
    color: var(--main-color);
    font-weight: 600;
}

.cat-link:hover {
    color: var(--black);
}

.bottom-updated {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

/* 前後記事ナビ */
.single-siblings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
}

.sibling-btn {
    flex: 0 0 auto;
}

.sibling-next {
    margin-left: auto;
}

/* 関連記事 */
.single-related {
    margin-bottom: 60px;
    padding-left: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 25px;
    padding-left: 30px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.6;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
}

.related-thumb {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: transform 300ms ease;
}

.related-thumb:hover {
    transform: translateY(-2px);
}

.related-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.related-title a {
    color: var(--title-color);
    transition: color 300ms ease;
}

.related-title a:hover {
    color: var(--main-color);
}

.related-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* コメントフォーム */
.single-comments {
    padding-left: 0;
}

.single-comments #respond {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
}

.single-comments #reply-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--box-border);
    position: relative;
}

.single-comments #reply-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

.single-comments .comment-form textarea,
.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"] {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--black);
    background: #fff;
    outline: none;
    transition: border-color 300ms ease;
    box-sizing: border-box;
}

.single-comments .comment-form textarea:focus,
.single-comments .comment-form input:focus {
    border-color: var(--main-color);
}

.single-comments .comment-form textarea {
    height: 160px;
    resize: vertical;
    margin-bottom: 15px;
}

.single-comments .comment-form-author,
.single-comments .comment-form-email,
.single-comments .comment-form-url {
    display: inline-block;
    width: 48%;
    margin-bottom: 15px;
}

.single-comments .comment-form-author {
    margin-right: 2%;
}

.single-comments .comment-form-url {
    width: 100%;
}

.single-comments .comment-form-author input,
.single-comments .comment-form-email input,
.single-comments .comment-form-url input {
    margin-bottom: 0;
}

.single-comments .form-submit {
    margin-top: 10px;
}

.single-comments .form-submit .btn {
    font-size: 15px;
    padding: 10px 30px;
}

/* コメント一覧 */
.single-comments .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-comments .comment {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    position: relative;
    padding-left: 65px;
}

.single-comments .comment:first-child {
    border-top: none;
}

.single-comments .comment .comment-author img {
    position: absolute;
    left: 0;
    top: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.single-comments .comment-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.single-comments .comment-author b {
    font-size: 15px;
    font-weight: 700;
    color: var(--title-color);
}

.single-comments .comment-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .single-title {
        font-size: 24px;
    }

    .single-thumb-img {
        height: 220px;
    }

    .single-content {
        padding: 25px 20px;
        font-size: 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .single-bottom-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-siblings {
        flex-direction: column;
        align-items: stretch;
    }

    .sibling-next {
        margin-left: 0;
    }

    .single-comments #respond {
        padding: 25px 20px;
    }

    .single-comments .comment-form-author,
    .single-comments .comment-form-email {
        width: 100%;
        margin-right: 0;
        display: block;
    }
}


/* lessonだけ本文背景を消す */
.single-lesson .single-content {
  background: none;
  border: none;
  padding: 0;
}

/* =========================================
   ウィジェット（最終版）
========================================= */

/* ---- サイドバー ---- */
/* sectionタグ＋widgetクラスを直接指定（詳細度を上げる） */
#sidebar section.widget,
aside#sidebar .widget {
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: none;
}

#sidebar section.widget:last-child,
aside#sidebar .widget:last-child {
  margin-bottom: 0;
}

/* ウィジェットタイトル：波アイコン＋テキスト（黒） */
#sidebar .widget-title,
aside#sidebar .widget-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--title-color);
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 波アイコンのみグラデーション */
#sidebar .widget-title::before,
aside#sidebar .widget-title::before {
  content: '≋';
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  bottom: auto;
  left: auto;
  flex-shrink: 0;
}

#sidebar .widget-title::after,
aside#sidebar .widget-title::after {
  display: none;
}

/* ナビメニュー */
#sidebar .widget_nav_menu ul li {
  border-bottom: 1px solid var(--border-color);
}
#sidebar .widget_nav_menu ul li:last-child { border-bottom: none; }
#sidebar .widget_nav_menu ul li a {
  display: block;
  padding: 9px 0 9px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  position: relative;
}
#sidebar .widget_nav_menu ul li a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-weight: 900;
}
#sidebar .widget_nav_menu ul li a:hover { color: var(--main-color); }

/* 検索フォーム */
#sidebar .widget_search .search-form,
#sidebar .widget_search form { display: flex; }
#sidebar .widget_search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  background: #f8f6ff;
}
#sidebar .widget_search .search-submit {
  padding: 10px 16px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-main);
  font-weight: 600;
}

/* カテゴリー・アーカイブ */
#sidebar .widget_categories ul li,
#sidebar .widget_archive ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
#sidebar .widget_categories ul li:last-child,
#sidebar .widget_archive ul li:last-child { border-bottom: none; }
#sidebar .widget_categories ul li a,
#sidebar .widget_archive ul li a { color: var(--black); font-weight: 600; }
#sidebar .widget_categories ul li a:hover,
#sidebar .widget_archive ul li a:hover { color: var(--main-color); }

/* タグクラウド */
#sidebar .widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
#sidebar .widget_tag_cloud .tagcloud a {
  padding: 4px 12px;
  font-size: 13px !important;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--black);
}
#sidebar .widget_tag_cloud .tagcloud a:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ---- フッター ---- */
.footer-widget-area {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  position: relative;
}

/* フッターウィジェット間の縦線 */
.footer-widget-area + .footer-widget-area::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--box-border);
}

/* フッタータイトル */
.footer-widget-area .widget-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--title-color);
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  -webkit-text-fill-color: var(--title-color);
}

.footer-widget-area .widget-title::before {
  content: '≋';
  display: inline-block;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  flex-shrink: 0;
}

.footer-widget-area .widget-title::after { display: none; }

/* =========================================
   Archive (Blog) - Wavy風 Classic List
   for: .articles.classic / .post-style-small-image / .featured-image / .info
========================================= */

/* 記事一覧の器 */
.articles.classic{
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* 1記事（画像左・本文右） */
.articles.classic article.post-style-small-image{
  display: flex;
  gap: 26px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.articles.classic article.post-style-small-image:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 画像側ラッパー */
.articles.classic .post-format-wrapper{
  flex: 0 0 40%;
  min-width: 260px;
}

/* featured image */
.articles.classic .featured-image{
  position: relative;
  width: 100%;
  height: 100%;
}

/* クリックできるサムネ */
.articles.classic a.thumb{
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--box-bg);
}

/* 画像サイズを安定させる（Wavyは横長寄り） */
.articles.classic img.post-image,
.articles.classic .post-image.fullimage{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

/* サムネ無しの保険 */
.articles.classic .no-thumb{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(252,102,104,0.18), rgba(225,4,137,0.10));
}

/* 画像上のメタ（コメントなど） */
.articles.classic .featured-image .meta.absolute{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.articles.classic .featured-image .comments{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  color: var(--title-color);
}

/* 右側（本文） */
.articles.classic .info{
  flex: 1;
  min-width: 0;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}

/* タイトル */
.articles.classic .main-title{
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 12px;
}

.articles.classic .main-title a{
  color: var(--title-color);
}

/* underline-effect っぽい下線 */
.articles.classic .underline-effect a{
  background-image: linear-gradient(to bottom, transparent 70%, rgba(244,54,118,0.25) 0);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: background-image 300ms ease;
}
.articles.classic article:hover .underline-effect a{
  background-image: linear-gradient(to bottom, transparent 55%, rgba(244,54,118,0.30) 0);
}

/* メタ（作者・日付） */
.articles.classic .info .meta{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.articles.classic .info .meta .author{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--black);
}

.articles.classic .info .meta .author:hover{
  color: var(--main-color);
}

/* WPのget_avatarにつけたclassに合わせる */
.articles.classic .author-image{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.articles.classic .author-name span{
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
}

.articles.classic .meta-info{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.articles.classic .dot{
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--main-color);
  display: inline-block;
}

/* 抜粋 */
.articles.classic .post-excerpt{
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.articles.classic .post-excerpt p{
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 下部（ボタン + Min Read） */
.articles.classic footer.bottom{
  margin-top: auto;
  padding-top: 14px;
}

.articles.classic .meta.bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Read Moreボタン：あなたのテーマのグラデに寄せる */
.articles.classic .epcl-button.gradient-button.wave-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 300ms ease, opacity 300ms ease;
}
.articles.classic .epcl-button.gradient-button.wave-button:hover{
  transform: translateY(-2px);
  opacity: 0.92;
}

/* “波”っぽいゆらぎ（外部svg無しで雰囲気） */
.articles.classic .epcl-button.gradient-button.wave-button::after{
  content:"";
  position:absolute;
  left:-30%;
  top:60%;
  width:160%;
  height:80%;
  background: radial-gradient(circle at 10% 0, rgba(255,255,255,0.35) 0 20%, transparent 22%) repeat-x;
  background-size: 36px 18px;
  opacity: 0.35;
  transform: translateY(0);
  transition: top 300ms ease;
  pointer-events:none;
}
.articles.classic .epcl-button.gradient-button.wave-button:hover::after{
  top:52%;
}

/* Min Read */
.articles.classic .min-read{
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* clearfixが残ってても害なし */
.articles.classic .clear{ display:none; }

/* レスポンシブ：スマホは縦積み */
@media (max-width: 900px){
  .articles.classic article.post-style-small-image{
    flex-direction: column;
  }
  .articles.classic .post-format-wrapper{
    flex-basis: auto;
    min-width: 0;
  }
  .articles.classic .info{
    padding: 18px 18px 16px;
  }
  .articles.classic .main-title{
    font-size: 18px;
  }
}

.footer-widget-area h3.wp-block-heading{
  font-size: 17px;
  font-weight: 900;
  color: var(--title-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-widget-area h3.wp-block-heading::before{
  content: '≋';
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* =========================
   本文リスト専用スタイル
   ========================= */

:where(.entry-content, .wp-block-post-content, .post-content, article)
:where(ul, ol) {
  margin: 1.2em 0;
  padding-left: 1.6em;
}

:where(.entry-content, .wp-block-post-content, .post-content, article)
:where(li) {
  line-height: 1.8;
  margin: 0.5em 0;
}

/* ネスト時は少し控えめ */
:where(.entry-content, .wp-block-post-content, .post-content, article)
:where(ul ul, ol ol, ul ol, ol ul) {
  margin: 0.4em 0;
}

/* マーカーを自然な位置に */
:where(.entry-content, .wp-block-post-content, .post-content, article)
:where(ul, ol) {
  list-style-position: outside;
}

/* ===== 本文リスト微調整（やさしく整える） ===== */

.entry-content ul,
.entry-content ol {
  margin: 1.2em 0 1.4em;
  padding-left: 1.8em;
}

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

/* 箇条書きの丸を少しだけ大人っぽく */
.entry-content ul li::marker {
  color: #4f46e5;
  font-size: 0.9em;
}

/* 番号リストは少し強調 */
.entry-content ol li::marker {
  font-weight: 700;
  color: #1f2937;
}

/* li内にpが入る場合の余白調整（ブロックエディタ対策） */
.entry-content li p {
  margin: 0;
}

/* Gutenbergリストのマーカー復活 */
.entry-content ul.wp-block-list {
  list-style: disc !important;
  padding-left: 1.6em;
}

.entry-content ul.wp-block-list li {
  list-style: disc !important;
}