/*
 * 本番 WordPress から取り出した CSS（tools/extract-wp-css.py で再生成）
 * 元: https://wizard-lab.co.jp
 */

/* Wizard Lab R&D記事用 カスタムスタイル（テーマ上書き用） */
.wizard-rd-article,
.editor-styles-wrapper .wizard-rd-article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #333 !important;
}

.wizard-rd-article h1.wp-block-heading,
.editor-styles-wrapper .wizard-rd-article h1 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #005a87 !important;
    padding-bottom: 0.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.wizard-rd-article h2.wp-block-heading,
.editor-styles-wrapper .wizard-rd-article h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #005a87 !important;
    border-left: 5px solid #005a87 !important;
    background-color: #f7f9fa !important;
    padding: 0.8rem 1rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1.2rem !important;
}

.wizard-rd-article h3.wp-block-heading,
.editor-styles-wrapper .wizard-rd-article h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-bottom: 1px dashed #ccc !important;
    padding-bottom: 0.4rem !important;
}

.wizard-rd-article ul.wp-block-list,
.editor-styles-wrapper .wizard-rd-article ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.wizard-rd-article ul.wp-block-list li,
.editor-styles-wrapper .wizard-rd-article ul li {
    position: relative !important;
    background: #fdfdfd !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 1.2rem 1.2rem 1.2rem 2.8rem !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    margin-bottom: 1rem !important;
}

.wizard-rd-article ul.wp-block-list li::before,
.editor-styles-wrapper .wizard-rd-article ul li::before {
    content: "■" !important;
    position: absolute !important;
    left: 1.2rem !important;
    color: #005a87 !important;
    font-size: 0.8rem !important;
    top: 1.4rem !important;
}

.wizard-rd-article strong {
    color: #1a1a1a !important;
    background: linear-gradient(transparent 60%, #aee0fb 60%) !important;
}

/* スクリーンショットのトリミング＆レイアウト */
.wizard-rd-article .screens-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin: 2.5rem 0 !important;
}

.wizard-rd-article .screen-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

@media (max-width: 600px) {
    .wizard-rd-article .screens-grid {
        grid-template-columns: 1fr !important;
    }
}

.wizard-rd-article .device-frame {
    width: 100% !important;
    aspect-ratio: 9 / 18.5 !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border: 6px solid #1a1a1a !important;
    background-color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.wizard-rd-article .device-frame figure {
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
}

.wizard-rd-article .device-frame img {
    width: 100% !important;
    height: auto !important;
    margin-top: -8% !important;
    margin-bottom: -10% !important;
    object-fit: cover !important;
}

.wizard-rd-article .image-caption {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-top: 1.2rem !important;
    text-align: center !important;
    background: #f7f9fa !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    width: 100% !important;
}

.wizard-rd-article .highlight-box {
    background-color: #eef7fc !important;
    border: 1px solid #bce0f5 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
}

.wizard-rd-article .highlight-box h4.wp-block-heading {
    margin-top: 0 !important;
    color: #005a87 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
}

.wizard-rd-article .signature {
    text-align: right !important;
    font-style: italic !important;
    color: #666 !important;
    margin-top: 3rem !important;
    border-top: 1px solid #eaeaea !important;
    padding-top: 1rem !important;
}
/* ============================================================
   R&D記事（2026年以降の書き方）用の追記  2026-08-29
   ------------------------------------------------------------
   既存の指定は1行も変更していない。ここから下だけを足している。

   すべて .rd-2026 を併記したセレクタにしてある。
   既存の3記事（ID 272 / 296 / 309）は .rd-2026 を持たないため、
   ここの指定は一切当たらない＝見た目は完全に据え置き。

   新しい記事は本文を次のように書く（<style> は不要）。
     <div class="wizard-rd-article rd-2026"> ... </div>

   色・角丸は既存の値（#005a87 / #f7f9fa / #eef7fc / #666 / 8px）に合わせた。
   ============================================================ */

.wizard-rd-article.rd-2026 p {
    margin-bottom: 1.5rem !important;
}

.wizard-rd-article.rd-2026 h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #005a87 !important;
    border-left: 5px solid #005a87 !important;
    border-radius: 0 8px 8px 0 !important;
    background-color: #f7f9fa !important;
    padding: 0.8rem 1rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1.2rem !important;
}

.wizard-rd-article.rd-2026 h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-bottom: 1px dashed #ccc !important;
    padding-bottom: 0.4rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
}

/* 素の <ul>（コードエディターで書いた箇条書き）にも当てる。
   既存記事の ul は .wp-block-list を持つブロックで、
   .rd-2026 が無いためここには該当しない。 */
.wizard-rd-article.rd-2026 ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-bottom: 2rem !important;
}

.wizard-rd-article.rd-2026 ul li {
    position: relative !important;
    background: #fdfdfd !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 1.2rem 1.2rem 1.2rem 2.8rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

.wizard-rd-article.rd-2026 ul li::before {
    content: "■" !important;
    position: absolute !important;
    left: 1.2rem !important;
    top: 1.4rem !important;
    color: #005a87 !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
}

.wizard-rd-article.rd-2026 .highlight-box {
    background-color: #eef7fc !important;
    border: 1px solid #bce0f5 !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

.wizard-rd-article.rd-2026 .highlight-box h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: #005a87 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.wizard-rd-article.rd-2026 .signature {
    text-align: right !important;
    font-style: italic !important;
    font-weight: 600 !important;
    color: #666 !important;
    margin-top: 3rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #eaeaea !important;
}

/* 画像。既存記事は .device-frame / .image-caption で組んでいるため
   そちらには影響しない。 */
.wizard-rd-article.rd-2026 figure {
    margin: 2rem 0 !important;
    text-align: center !important;
}

.wizard-rd-article.rd-2026 figure img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.wizard-rd-article.rd-2026 figcaption {
    font-size: 0.85rem !important;
    font-style: italic !important;
    color: #666 !important;
    margin-top: 0.8rem !important;
    text-align: center !important;
}


