/*
	Theme Name: diver_child
	Template: diver
	Description:  Diverの子テーマです。
	Theme URI: http://tan-taka.com/diver/
	Author: Takato Takagi
 */

/* カスタマイズする場合にはこれより下に追記してください  */

@media screen and (min-width: 960px) and (max-width: 1230px) {
    #nav_fixed .logo {
        display: none;
    }
}

/* サイドメニュー折りたたみ */
div.wsp-container > ul ul ul.wsp-posts-list {
    display: none;
}
strong.wsp-category-title:after {
    content: '+';
}
strong.wsp-category-title a {
	padding-right: .4em !important;
}

/* コードコピーボタン */

/* タイトル行を基準に absolute 配置できるように */
.sc_toggle_box .has-copy-btn-in-title {
  position: relative;
}

/* タイトル右側（矢印の左）に固定 */
.sc_toggle_box .copy-code-btn-in-title {
  position: absolute;
  right: 48px;            /* ← 矢印の幅に合わせて調整（32〜64pxくらいで） */
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  z-index: 9999;          /* ← これが効く（あなたの状況） */
}

/* BEGIN display-compat-fixes-20261024: manual */
/* Diver更新前の記事カードの抜粋サイズを維持する。非表示になるモバイルの設定は変えない。 */
.sc_getpost .substr {
    font-size: 0.8em;
}

/* 768px以下の日付は親テーマの0.6emを維持し、通常表示だけ旧サイズへ戻す。 */
@media screen and (min-width: 769px) {
    .sc_getpost .date {
        font-size: 0.8em;
    }
}

/* 親テーマのplain div規則より優先し、囲み枠の最後に余白を残さない旧ルールを維持する。 */
.content .sc_frame_wrap .sc_frame > :last-child {
    margin-bottom: 0;
}
/* END display-compat-fixes-20261024: manual */

/* BEGIN remaining-display-fixes-20261024: manual */
/* Diver 更新で追加された code の既定装飾だけを旧表示へ戻す。
 * :where() で詳細度を抑え、Prism の背景・左罫線・字下げは優先させる。 */
.content :where(code) {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

/* 旧テーマは id の有無を問わず、class/style のない本文 div に 1.5em を適用していた。 */
:where(.content) div[id]:not([class]):not([style]) {
    margin-bottom: 1.5em;
}
/* END remaining-display-fixes-20261024: manual */
