@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ - カスタムデザイン版
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** Cocoonのデザインスタイルのみ上書き
** （機能的なスタイルは維持）
************************************/

/* カスタムページ用のデザインリセット */
body.custom-guide-page {
    font-family: 'Noto Sans JP', sans-serif !important;
    background-color: #f9fafb !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cocoonのコンテナをカスタムページでは無効化 */
body.custom-guide-page .wrap,
body.custom-guide-page #container,
body.custom-guide-page #body,
body.custom-guide-page .main-content {
    max-width: 100% !important;

    margin: 0 !important;
}

/* Cocoonのヘッダー・フッターをカスタムページでは非表示 */
body.custom-guide-page .header-container-in,
body.custom-guide-page .navi,
body.custom-guide-page .breadcrumb,
body.custom-guide-page .footer-bottom {
    display: none !important;
}

/* Cocoonのサイドバーを非表示 */
body.custom-guide-page #sidebar,
body.custom-guide-page .sidebar {
    display: none !important;
}

/* ヘッダーのシャドウを削除 */
.header,
.header-container,
.header-container.fixed-header,
.fixed-header,
.header-in,
header {
    box-shadow: none !important;
}

/* パンくずリストの番号表記を削除 */
nav ol,
nav ul,
.breadcrumb ol,
.breadcrumb ul {
    list-style: none !important;
}

nav ol li::marker,
nav ul li::marker,
.breadcrumb ol li::marker,
.breadcrumb ul li::marker {
    content: none !important;
}

/* Cocoonのデフォルトボックススタイルを削除 */
body.custom-guide-page .article,
body.custom-guide-page .entry-card,
body.custom-guide-page .post {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* リンクスタイルのリセット */
body.custom-guide-page a {
    color: inherit;
    text-decoration: none;
}

/* 見出しスタイルのリセット - Cocoonの装飾のみ無効化 */
body.custom-guide-page h1,
body.custom-guide-page h2,
body.custom-guide-page h3,
body.custom-guide-page h4,
body.custom-guide-page h5,
body.custom-guide-page h6 {
    /* margin, padding, font-weight, line-heightはstyles.cssで制御 */
    border: none !important;
    background: none !important;
    /* Cocoonの装飾的なスタイルのみ無効化 */
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Cocoonのデフォルトマージン・パディングをリセット */
body.custom-guide-page .entry-content > *:first-child {
    margin-top: 0 !important;
}

body.custom-guide-page .entry-content > *:last-child {
    margin-bottom: 0 !important;
}

/************************************
** ブロックエディタのスタイル対応
************************************/
/* FAQ内のentry-contentでブロックエディタのスタイルを有効化 */
/* styles.cssで詳細に定義しているため、ここでは最小限の設定のみ */

/* WordPress標準カラーパレット - !importantで確実に適用 */
.faq-answer-content.entry-content .has-vivid-red-color { color: #cf2e2e !important; }
.faq-answer-content.entry-content .has-luminous-vivid-orange-color { color: #ff6900 !important; }
.faq-answer-content.entry-content .has-luminous-vivid-amber-color { color: #fcb900 !important; }
.faq-answer-content.entry-content .has-light-green-cyan-color { color: #7bdcb5 !important; }
.faq-answer-content.entry-content .has-vivid-green-cyan-color { color: #00d084 !important; }
.faq-answer-content.entry-content .has-pale-cyan-blue-color { color: #8ed1fc !important; }
.faq-answer-content.entry-content .has-vivid-cyan-blue-color { color: #0693e3 !important; }
.faq-answer-content.entry-content .has-vivid-purple-color { color: #9b51e0 !important; }

/* WordPress標準カラーパレット - 背景色対応 */
.faq-answer-content.entry-content .has-vivid-red-background-color { background-color: #cf2e2e !important; }
.faq-answer-content.entry-content .has-luminous-vivid-orange-background-color { background-color: #ff6900 !important; }
.faq-answer-content.entry-content .has-luminous-vivid-amber-background-color { background-color: #fcb900 !important; }
.faq-answer-content.entry-content .has-light-green-cyan-background-color { background-color: #7bdcb5 !important; }
.faq-answer-content.entry-content .has-vivid-green-cyan-background-color { background-color: #00d084 !important; }
.faq-answer-content.entry-content .has-pale-cyan-blue-background-color { background-color: #8ed1fc !important; }
.faq-answer-content.entry-content .has-vivid-cyan-blue-background-color { background-color: #0693e3 !important; }
.faq-answer-content.entry-content .has-vivid-purple-background-color { background-color: #9b51e0 !important; }

/* 背景色 */
.faq-answer-content.entry-content .has-background {
    padding: 0.5em 1em;
    border-radius: 4px;
    background-color: var(--wp--preset--color, initial) !important;
}

/* テキスト装飾 */
.faq-answer-content.entry-content strong,
.faq-answer-content.entry-content b {
    font-weight: 700;
}

.faq-answer-content.entry-content em,
.faq-answer-content.entry-content i {
    font-style: italic;
}

/* リンクスタイル */
.faq-answer-content.entry-content a {
    color: #FF6D00;
    text-decoration: underline;
    transition: color 0.2s;
    color: #FF6D00 !important;
}

.faq-answer-content.entry-content a:hover {
    color: #e55e00;
    color: #e55e00 !important;
}

/* リスト */
.faq-answer-content.entry-content ul,
.faq-answer-content.entry-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.faq-answer-content.entry-content li {
    margin: 0.5em 0;
}

/* 段落 */
.faq-answer-content.entry-content p {
    margin: 0.5em 0;
    line-height: 1.6;
}

/* ブロック引用 */
.faq-answer-content.entry-content blockquote {
    margin: 1em 0;
    padding: 1em;
    border-left: 4px solid #FFBE00;
    background-color: #f9fafb;
}

/* FAQ回答内：Gutenbergブロック装飾の補完（Cocoonスキン相当の最低限） */
.faq-answer-content.entry-content .is-style-outline {
    border: 1px solid #D9D9D9 !important;
    padding: 0.75em 1em;
    border-radius: 6px;
    background: #fff;
}

.faq-answer-content.entry-content .is-style-rounded {
    border: 1px solid #D9D9D9 !important;
    padding: 0.75em 1em;
    border-radius: 12px;
    background: #fff;
}

.faq-answer-content.entry-content .is-style-squared {
    border: 1px solid #D9D9D9 !important;
    padding: 0.75em 1em;
    border-radius: 0;
    background: #fff;
}

/* ノート風（情報ボックスの簡易版） */
.faq-answer-content.entry-content .is-style-note,
.faq-answer-content.entry-content .is-style-information {
    border-left: 4px solid #9CA3AF !important;
    background: #F3F4F6 !important;
    padding: 0.75em 1em !important;
    border-radius: 6px !important;
}

/* 重要・警告風 */
.faq-answer-content.entry-content .is-style-warning {
    border-left: 4px solid #F59E0B !important;
    background: #FFF7ED !important;
}

.faq-answer-content.entry-content .is-style-danger {
    border-left: 4px solid #EF4444 !important;
    background: #FEF2F2 !important;
}

/* グループブロックの背景（has-backgroundと併用時の見栄え調整） */
.faq-answer-content.entry-content .wp-block-group.has-background {
    padding: 1em !important;
    border-radius: 8px !important;
}

/* コードブロック */
.faq-answer-content.entry-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.faq-answer-content.entry-content pre {
    background-color: #f4f4f4;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

.faq-answer-content.entry-content pre code {
    background: none;
    padding: 0;
}

/* ========================================
     Cocoon風スタイルの最低限対応（サイト全体）
     （CocoonのベースCSSなしでも、
         ブロックエディタ装飾が分かるように）
     ======================================== */

/* 情報・質問・警告などのボックス系 */
/* .entry-content .is-style-information-box,
.entry-content .information-box,
.entry-content .information {
    border-radius: 4px;
    padding: 1em 1.25em 1em 2.75em;
    position: relative;
}

.entry-content .is-style-question-box,
.entry-content .question-box,
.entry-content .question {
    border-radius: 4px;
    padding: 1em 1.25em 1em 2.75em;
    position: relative;
} */

.entry-content .information-box::before,
.entry-content .question-box::before,
.entry-content .alert-box::before,
.entry-content .memo-box::before,
.entry-content .comment-box::before,
.entry-content .ok-box::before,
.entry-content .ng-box::before,
.entry-content .good-box::before,
.entry-content .bad-box::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 0.5em;
}

/* .entry-content .information-box::before { content: "\f05a"; color: #2ea3f2; }
.entry-content .question-box::before { content: "\f059"; color: #e0a800; }
.entry-content .alert-box::before { content: "\f071"; color: #e55353; }
.entry-content .memo-box::before { content: "\f249"; color: #20c997; }
.entry-content .comment-box::before { content: "\f075"; color: #6c757d; }
.entry-content .ok-box::before { content: "\f058"; color: #17a2b8; }
.entry-content .ng-box::before { content: "\f057"; color: #dc3545; }
.entry-content .good-box::before { content: "\f164"; color: #28a745; }
.entry-content .bad-box::before { content: "\f165"; color: #e8590c; }
.entry-content .is-style-alert-box, 
.entry-content .alert-box,
.entry-content .alert {
    border-radius: 4px;
    padding: 1em 1.25em 1em 2.75em;
    position: relative;
} */

/* .entry-content .is-style-memo-box,
.entry-content .memo-box {
    border-radius: 4px;
    padding: 1em 1.25em 1em 2.75em;
    position: relative;
}

.entry-content .is-style-comment-box,
.entry-content .comment-box {
    background: #fefefe !important;
    border: 1px solid #ccd !important;
    border-radius: 4px;
    padding: 1em 1.25em;
}

.entry-content .is-style-ok-box,
.entry-content .ok-box {
    background: #f2fafb !important;
    border: 1px solid #3cb2cc !important;
    border-radius: 4px;
    padding: 1em 1.25em;
}

.entry-content .is-style-ng-box,
.entry-content .ng-box {
    background: #ffe7e7 !important;
    border: 1px solid #dd5454 !important;
    border-radius: 4px;
    padding: 1em 1.25em;
}

.entry-content .is-style-good-box,
.entry-content .good-box {
    background: #f7fcf7 !important;
    border: 1px solid #98e093 !important;
    border-radius: 4px;
    padding: 1em 1.25em;
}

.entry-content .is-style-bad-box,
.entry-content .bad-box {
    background: #fff1f4 !important;
    border: 1px solid #eb6980 !important;
    border-radius: 4px;
    padding: 1em 1.25em;
} */

/* 末尾要素の余白詰め（ボックス内の最後の段落など） */
.entry-content .information-box :last-child,
.entry-content .question-box :last-child,
.entry-content .alert-box :last-child,
.entry-content .memo-box :last-child,
.entry-content .comment-box :last-child,
.entry-content .ok-box :last-child,
.entry-content .ng-box :last-child,
.entry-content .good-box :last-child,
.entry-content .bad-box :last-child {
    margin-bottom: 0;
}

/* ================================
     Cocoon blank-box / bb-* 対応
     ================================ */
.entry-content .blank-box {
    border-radius: 4px;
    padding: 1em 1.25em 1em 2.75em;
    position: relative;
}


/* アイコン（Font Awesome） */
.entry-content .blank-box.bb-information::before,
.entry-content .blank-box.bb-question::before,
.entry-content .blank-box.bb-alert::before,
.entry-content .blank-box.bb-memo::before,
.entry-content .blank-box.bb-comment::before,
.entry-content .blank-box.bb-ok::before,
.entry-content .blank-box.bb-ng::before,
.entry-content .blank-box.bb-good::before,
.entry-content .blank-box.bb-bad::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0.9em;
    top: 0.95em;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    border-radius: 50%;
    background: #fff;
}
.entry-content .blank-box.bb-information::before { content: "\f05a"; color: #2ea3f2; }
.entry-content .blank-box.bb-question::before { content: "\f059"; color: #e0a800; }
.entry-content .blank-box.bb-alert::before { content: "\f071"; color: #e55353; }
.entry-content .blank-box.bb-memo::before { content: "\f249"; color: #20c997; }
.entry-content .blank-box.bb-comment::before { content: "\f075"; color: #6c757d; }
.entry-content .blank-box.bb-ok::before { content: "\f058"; color: #17a2b8; }
.entry-content .blank-box.bb-ng::before { content: "\f057"; color: #dc3545; }
.entry-content .blank-box.bb-good::before { content: "\f164"; color: #28a745; }
.entry-content .blank-box.bb-bad::before { content: "\f165"; color: #e8590c; }

/************************************
** 子テーマ用のカスタムスタイル
************************************/
/* 必要に応じてここにカスタムスタイルを追加 */

/* Guide search UI moved to assets/css/components/forms.css */

/* =========================================
   Cocoonボックス：アイコン位置修正（スキン維持版）
   親CSSは読み込むが、絶対配置だけを上書き
   ========================================= */

/* ボックス本体：絶対配置の親コンテナを無効化（詳細度を上げる） */
body .entry-content .blank-box,
body.font-awesome-5 .entry-content .blank-box {
  position: static !important;
  padding-left: 1.25em !important; /* 余分な左余白を削除 */
}

/* タブ付きボックスのみ相対配置を許可（タブが上部に必要） */
body .entry-content .blank-box.bb-tab,
body.font-awesome-5 .entry-content .blank-box.bb-tab {
  position: relative !important;
}

/* 全アイコン擬似要素：絶対配置を強制的にインライン化（bodyセレクタで詳細度アップ） */
body .entry-content .blank-box.bb-check::before,
body .entry-content .blank-box.bb-comment::before,
body .entry-content .blank-box.bb-point::before,
body .entry-content .blank-box.bb-tips::before,
body .entry-content .blank-box.bb-hint::before,
body .entry-content .blank-box.bb-pickup::before,
body .entry-content .blank-box.bb-bookmark::before,
body .entry-content .blank-box.bb-memo::before,
body .entry-content .blank-box.bb-download::before,
body .entry-content .blank-box.bb-break::before,
body .entry-content .blank-box.bb-amazon::before,
body .entry-content .blank-box.bb-ok::before,
body .entry-content .blank-box.bb-ng::before,
body .entry-content .blank-box.bb-good::before,
body .entry-content .blank-box.bb-bad::before,
body .entry-content .blank-box.bb-profile::before,
body .entry-content .blank-box.bb-information::before,
body .entry-content .blank-box.bb-question::before,
body .entry-content .blank-box.bb-alert::before,
body.font-awesome-5 .entry-content .blank-box.bb-check::before,
body.font-awesome-5 .entry-content .blank-box.bb-comment::before,
body.font-awesome-5 .entry-content .blank-box.bb-point::before,
body.font-awesome-5 .entry-content .blank-box.bb-tips::before,
body.font-awesome-5 .entry-content .blank-box.bb-hint::before,
body.font-awesome-5 .entry-content .blank-box.bb-pickup::before,
body.font-awesome-5 .entry-content .blank-box.bb-bookmark::before,
body.font-awesome-5 .entry-content .blank-box.bb-memo::before,
body.font-awesome-5 .entry-content .blank-box.bb-download::before,
body.font-awesome-5 .entry-content .blank-box.bb-break::before,
body.font-awesome-5 .entry-content .blank-box.bb-amazon::before,
body.font-awesome-5 .entry-content .blank-box.bb-ok::before,
body.font-awesome-5 .entry-content .blank-box.bb-ng::before,
body.font-awesome-5 .entry-content .blank-box.bb-good::before,
body.font-awesome-5 .entry-content .blank-box.bb-bad::before,
body.font-awesome-5 .entry-content .blank-box.bb-profile::before,
body.font-awesome-5 .entry-content .blank-box.bb-information::before,
body.font-awesome-5 .entry-content .blank-box.bb-question::before,
body.font-awesome-5 .entry-content .blank-box.bb-alert::before {
  position: static !important;
  display: inline !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  transform: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  clip-path: none !important;
}

/* タブ型ボックスのタブ部分は絶対配置を維持 */
body .entry-content .blank-box.bb-tab::before,
body.font-awesome-5 .entry-content .blank-box.bb-tab::before {
  position: absolute !important;
  top: -27px !important;
  left: -3px !important;
}/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下
@media screen and (max-width: 834px){
    .guide-search-form {
        gap: 8px;
    }
    .guide-search-input {
        font-size: 15px;
    }
}*/

/*480px以下*/
@media screen and (max-width: 480px){
    .guide-search-form {
        flex-wrap: wrap;
        padding: 8px;
    }
    .guide-search-input {
        flex: 1 1 100%;
        width: 100%;
        padding: 10px 12px;
        background: #fff;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
    }
    .guide-search-button {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
        padding: 12px 14px;
    }
}
