@charset "UTF-8";

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

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

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

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

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


/* ===== 2026-09-23 リデザイン（Claude Code）ここから ===== */
#content-in.content-in { display: flex !important; flex-wrap: nowrap !important; gap: 28px; align-items: stretch; }
.content .main { width: auto !important; max-width: none !important; flex: 1 1 0; min-width: 0; margin: 0 !important; float: none !important; }
#sidebar.sidebar { width: 336px !important; flex: 0 0 336px; margin: 0 !important; padding: 0 !important; align-self: stretch; height: auto; }
.no-sidebar .content .main { width: auto !important; max-width: 920px !important; margin: 0 auto !important; }
@media screen and (max-width: 1023px){
  #content-in.content-in { display: block !important; }
  #sidebar.sidebar { width: auto !important; flex: none; margin-top: 28px !important; }
  .content .main { width: 100% !important; }
}
#sidebar .widget_text:first-child { position: sticky; top: 16px; z-index: 2; }
.ksd-course { border-radius: 12px; overflow: hidden; background: #2b1d60; }
.ksd-course__link { display: block; padding: 0 0 18px; color: #fff !important; text-decoration: none !important; }
.ksd-course__eyebrow { display: block; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: #d9ccff; background: rgba(255,255,255,.08); padding: 9px 16px; }
.ksd-course__logo { display: block; font-size: 15px; font-weight: 400; letter-spacing: .02em; margin: 16px 16px 0; }
.ksd-course__logo b { font-weight: 900; }
.ksd-course__kf { display: flex; align-items: center; margin: 10px 16px 12px; }
.ksd-course__kf i { width: 9px; height: 9px; background: #a77bff; transform: rotate(45deg); display: block; flex: none; }
.ksd-course__kf s { flex: 1; height: 1px; background: rgba(255,255,255,.35); display: block; text-decoration: none; }
.ksd-course__title { display: block; font-size: 21px; font-weight: 900; line-height: 1.45; margin: 0 16px 8px; }
.ksd-course__list { display: block; font-size: 12.5px; line-height: 1.75; color: #e6defc; margin: 0 16px 14px; }
.ksd-course__btn { display: block; text-align: center; background: #fff; color: #2b1d60 !important; border-radius: 999px; padding: 9px 0; font-weight: 900; font-size: 13.5px; margin: 0 16px; }
.ksd-course__by { display: block; font-size: 10px; color: #b9aee0; text-align: center; margin: 9px 16px 0; }
.ksd-course__link:hover .ksd-course__btn { background: #f0ebff; }
.article .entry-content { font-size: 16px; line-height: 1.95; }
.article .entry-content p { margin: 0 0 1.5em; }
.article h2 { font-size: 22px; line-height: 1.5; }
.article h3 { font-size: 18.5px; line-height: 1.55; }
.entry-title, .article h2, .article h3, .article h4 { font-weight: 700; }
@media screen and (max-width: 834px){
  .article .entry-content { font-size: 16px; line-height: 1.9; }
  .article h2 { font-size: 19px; }
  .article h3 { font-size: 17px; }
}

/* 4. 著者ボックス：記事の上と、記事下の重複を消す（残すのは記事下の1つ） */
.article-header #authorbox { display: none !important; }
.article-footer > #authorbox ~ #authorbox { display: none !important; }
.article-footer > .publisher { display: none; }

/* 5. サイドバーの見出しが白文字で読めない問題 */
#sidebar .widget-sidebar-title, #sidebar .widget-title {
  color: #1d1b1a !important; background: transparent !important;
  border-left: 4px solid #e6205a; padding: 0 0 0 10px !important; margin: 0 0 12px !important;
  font-size: 14px !important; line-height: 1.5; text-align: left !important;
}
#sidebar .widget { margin-bottom: 26px; }

/* 6. スマホ下部の講座バー（1枠だけ） */
#ksd-dock { display: none; }
@media screen and (max-width: 834px){
  #ksd-dock { display: flex; align-items: stretch; position: fixed; left: 0; right: 0; bottom: 52px; z-index: 999;
    background: #2b1d60; color: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
  #ksd-dock[hidden] { display: none; }
  .ksd-dock__link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 10px 8px 14px; color: #fff !important; text-decoration: none !important; }
  .ksd-dock__body { display: block; min-width: 0; }
  .ksd-dock__body b { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; }
  .ksd-dock__body small { display: block; font-size: 10.5px; color: #cdc1f0; line-height: 1.35; }
  .ksd-dock__btn { background: #fff; color: #2b1d60; border-radius: 999px; font-size: 11.5px; font-weight: 900; padding: 6px 12px; white-space: nowrap; margin-left: auto; }
  .ksd-dock__close { background: none; border: 0; color: #cdc1f0; font-size: 18px; line-height: 1; width: 40px; cursor: pointer; }
}

/* 7. Palmie風：ヘッダーを細い1行に、ピックアップのバナーは外す */
/* ピックアップの4バナーは表示（2026-09-23 戻した） */
@media screen and (min-width: 1024px){
  #header-container-in.hlt-center-logo { display: flex !important; align-items: center; gap: 24px; padding: 6px 24px; position: relative; }
  #header-container-in.hlt-center-logo #header { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
  #header-container-in.hlt-center-logo #navi { flex: 1 1 100%; }
  #header-container-in.hlt-center-logo #header { flex: 0 0 auto; padding: 0; height: auto; }
  #header-container-in.hlt-center-logo #header-in { padding: 0 !important; width: auto !important; display: flex; align-items: center; min-height: 0; }
  #header-container-in.hlt-center-logo .tagline { display: none !important; }
  #header-container-in.hlt-center-logo .header-site-logo-image { height: 40px !important; width: auto !important; margin: 0 !important; }
  #header-container-in.hlt-center-logo #navi { flex: 1 1 auto; margin: 0; height: auto; }
  #header-container-in.hlt-center-logo #navi-in { padding: 0 !important; width: auto !important; }
  #header-container-in.hlt-center-logo .menu-header { display: flex; justify-content: center; align-items: center; gap: 2px; }
  #header-container-in.hlt-center-logo .menu-header li { height: auto; }
  #header-container-in.hlt-center-logo .menu-header li a { height: auto !important; line-height: 1.4 !important; padding: 7px 12px !important; font-size: 13px; }
  #header-container-in.hlt-center-logo .menu-adanime { margin-left: 10px; }
  #header-container-in.hlt-center-logo .menu-adanime > a { padding: 0 !important; }
  #header-container-in.hlt-center-logo .menu-adanime .caption-wrap { padding: 7px 16px; }
}
/* 8. メニューの講座ボタン（紫）と、PCで重なるアイコンの整理 */
.menu-adanime .caption-wrap { background: #2b1d60; border-radius: 999px; display: inline-flex; align-items: center; transition: background .2s; }
.menu-adanime .item-label { color: #fff !important; font-weight: 700; }
.menu-adanime > a:hover .caption-wrap { background: #6940df; }
@media screen and (min-width: 1024px){
  #header-container .nav_btn, #header-container #search_btn, #header-container #navbtn { display: none !important; }
}
/* 9. 記事カードとランキング（Palmie風） */
.entry-card-wrap { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.08); border:0 !important; position:relative; }
.entry-card-wrap .entry-card-thumb { margin:0 !important; }
.entry-card-wrap .entry-card-thumb img { width:100%; aspect-ratio:5/3; object-fit:cover; display:block; }
.entry-card-wrap .entry-card-content { padding:12px 14px 14px; margin-left:0 !important; }
.entry-card-wrap .entry-card-title { font-size:15px; line-height:1.55; font-weight:700; margin:0 0 8px; }
.entry-card-wrap .entry-card-meta { font-size:11px; color:#8a847c; }
.entry-card-wrap .entry-card-snippet { font-size:12.5px; line-height:1.7; color:#6b6560; }
.entry-card-wrap .cat-label { position:absolute; left:8px; top:8px; background:rgba(255,255,255,.94); color:#e6205a; border:0; border-radius:4px; font-size:10.5px; font-weight:700; padding:2px 8px; z-index:2; }
.entry-card-wrap:hover { box-shadow:0 4px 14px rgba(0,0,0,.14); }
.ecb-entry-border .entry-card-wrap { border:0; }

/* サイドバーの「よく読まれている記事」 */
.ksd-rank { list-style:none; margin:0; padding:0; counter-reset:ksdr; }
.ksd-rank li { counter-increment:ksdr; border-top:1px solid #efece7; }
.ksd-rank li:first-child { border-top:0; }
.ksd-rank a { display:grid; grid-template-columns:22px 64px 1fr; gap:9px; align-items:center; padding:9px 0; color:#1d1b1a !important; text-decoration:none !important; }
.ksd-rank a:before { content:counter(ksdr); font-weight:900; color:#e6205a; font-size:14px; text-align:center; }
.ksd-rank img { width:64px; height:44px; object-fit:cover; border-radius:4px; display:block; }
.ksd-rank span { font-size:12px; line-height:1.5; font-weight:700; }
.ksd-rank a:hover span { color:#e6205a !important; }
/* 10. カテゴリのタブ */
.ksd-tabs { display:flex; gap:0; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.07); margin:0 0 18px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.ksd-tabs__item { flex:1 0 auto; text-align:center; font-size:12.5px; font-weight:700; padding:10px 14px; color:#6b6560 !important; text-decoration:none !important; border-right:1px solid #f0ece6; white-space:nowrap; }
.ksd-tabs__item:last-child { border-right:0; }
.ksd-tabs__item:hover { background:#fdf2f5; color:#e6205a !important; }
.ksd-tabs__item.is-current { background:#e6205a; color:#fff !important; }
@media screen and (max-width:834px){ .ksd-tabs { margin:0 0 14px; } .ksd-tabs__item { font-size:12px; padding:9px 12px; flex:0 0 auto; } }
/* ===== 2026-09-23 リデザイン ここまで ===== */
