@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.0.11
*/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500&display=swap');

/* --- MySpirits Blog: Elegant White Glassmorphism Theme --- */

body {
    background-color: #faf9f5 !important;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.05), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #f7f5ed 100%) !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #333333 !important;
    font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.widget-title {
    font-family: 'Shippori Mincho', serif !important;
    color: #1a1a1a !important;
    letter-spacing: 0.05em;
}

.site-name-text {
    font-family: 'Shippori Mincho', serif !important;
    font-size: 1.8em !important;
    background: -webkit-linear-gradient(0deg, #b08d23, #d4af37, #fcecae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#header,
#navi,
#body,
#main,
#sidebar,
#footer {
    background: transparent !important;
}

.navi-in a {
    color: #333 !important;
    font-weight: 500 !important;
}

/* =========================================================
   4. ホワイト・グラスモーフィズム (共通のパネルデザイン)
   ========================================================= */
.entry-card-wrap,
.related-entry-card-wrap,
.widget,
.post {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 32px !important;
    overflow: hidden !important;
}

.entry-card-wrap,
.related-entry-card-wrap {
    padding: 24px !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.widget {
    padding: 24px !important;
}

.post {
    padding: 32px !important;
    display: block !important;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
}

/* =========================================================
   5. 横長カード（リスト一覧表示）のレイアウト修正
   ========================================================= */
/* リストアイテムの a タグ自体のフレックス化設定は解除（縦並びの元凶） */
.entry-card-wrap,
.related-entry-card-wrap {
    display: block !important;
}

/* リンク内の article 要素をフレックスコンテナにして画像を横並びにする */
.entry-card-wrap>article,
.related-entry-card-wrap>article {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    /* テキスト枠が画像と同じ高さになるようにstretchに変更 */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.entry-card-wrap::before,
.entry-card-wrap::after,
.related-entry-card-wrap::before,
.related-entry-card-wrap::after,
.entry-card-wrap>article::before,
.entry-card-wrap>article::after {
    display: none !important;
}

.entry-card-thumb,
.related-entry-thumb,
.entry-card-content,
.related-entry-content {
    float: none !important;
}

/* サムネイルエリア（左側）：しっかりと横幅を取りつつ縦長比率を保つ */
.entry-card-thumb,
.related-entry-thumb {
    width: 32% !important;
    min-width: 150px !important;
    max-width: 250px !important;
    margin-right: 28px !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    aspect-ratio: 2 / 3 !important;
    /* 縦長比率 2:3 */
    align-self: flex-start !important;
    /* 画像は上揃えを維持し、引き伸ばされないようにする */
}

/* aタグをブロックにして画像サイズを親に合わせる */
.entry-card-thumb a,
.related-entry-thumb a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.entry-card-thumb img,
.related-entry-thumb img {
    border-radius: 0 !important;
    transition: transform 0.6s ease !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}

.entry-card-wrap:hover .entry-card-thumb img {
    transform: scale(1.03) !important;
}

.cat-label {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    padding: 3px 8px !important;
    top: 8px !important;
    left: 8px !important;
}

/* =========================================================
   6. テキストエリア（右側）の調整
   ========================================================= */
.entry-card-content,
.related-entry-content {
    width: calc(100% - 32% - 28px) !important;
    /* コンテナ内での正確な幅計算 */
    flex-basis: auto !important;
    margin-left: 0 !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /* 文字を縦中央に配置 */
    padding-right: 6% !important;
    /* 右側に余白を追加 */
    box-sizing: border-box !important;
}

.entry-card-title {
    margin-top: 0 !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
}

.entry-card-snippet {
    color: #555 !important;
    line-height: 1.7 !important;
    margin-top: 0 !important;
    font-size: 15px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
}

a:hover,
.entry-card-title:hover {
    color: #D4AF37 !important;
}

/* =========================================================
   7. サイドバーとボタン
   ========================================================= */
.widget-title {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding-bottom: 16px !important;
    text-align: center;
    margin-bottom: 20px !important;
}

.search-submit,
.btn,
.button {
    background: linear-gradient(135deg, #dfc15e 0%, #d4af37 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
}

.search-submit:hover,
.btn:hover,
.button:hover {
    background: linear-gradient(135deg, #ebd17a 0%, #e0bd49 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important;
}

.search-edit {
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 10px !important;
}

/* =========================================================
   レスポンシブ（スマホ・タブレット向け）
   ========================================================= */
@media screen and (max-width: 834px) {

    .entry-card-wrap>article,
    .related-entry-card-wrap>article {
        flex-direction: column !important;
        align-items: center !important;
    }

    .entry-card-wrap,
    .related-entry-card-wrap {
        padding: 20px !important;
    }

    .entry-card-thumb,
    .related-entry-thumb {
        width: 80% !important;
        max-width: 400px !important;
        margin-right: 0 !important;
        margin-bottom: 24px !important;
        aspect-ratio: 2 / 3 !important;
    }

    .entry-card-content,
    .related-entry-content {
        width: 100% !important;
        /* スマホ時は100%幅に */
        padding-right: 0 !important;
        /* スマホ時は右余白をリセット */
    }

    .entry-card-snippet {
        -webkit-line-clamp: 3 !important;
    }
}

@media screen and (max-width: 480px) {

    .entry-card-thumb,
    .related-entry-thumb {
        width: 100% !important;
    }

    .entry-card-wrap,
    .related-entry-card-wrap,
    .widget,
    .post {
        border-radius: 12px !important;
        padding: 16px !important;
    }
}

/* =========================================================
   8. フローティング・ブログナビゲーション
   ========================================================= */
.myspirits-floating-menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 8px 24px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
    width: auto;
    max-width: 90vw;
}

.myspirits-floating-menu.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.floating-menu-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.floating-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

.floating-menu-list a {
    color: #333 !important;
    text-decoration: none !important;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    transition: color 0.3s ease;
}

.floating-menu-list a i {
    color: #D4AF37;
    font-size: 1.1em;
}

.floating-menu-list a:hover {
    color: #D4AF37 !important;
}

/* スマホ用のフローティングメニュー調整（下部固定） */
@media screen and (max-width: 768px) {
    .myspirits-floating-menu {
        top: auto;
        bottom: 20px;
        transform: translateX(-50%) translateY(150%);
        padding: 8px 16px;
        border-radius: 20px;
        width: 95vw;
    }

    .myspirits-floating-menu.is-visible {
        transform: translateX(-50%) translateY(0);
    }

    .floating-menu-list {
        gap: 12px;
    }

    .floating-menu-list a {
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
        padding: 4px;
    }

    .floating-menu-list a i {
        font-size: 1.2em;
    }
}

/* =========================================================
   9. サイドバースクロール追従の強制指定
   ========================================================= */
#sidebar-scroll {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    /* 追従エリアがメインコンテンツより長くなるオーバーフローを防ぐ */
    height: auto;
}
/* =========================================================
   10. ヘッダー常時固定表示（sticky header）
   ========================================================= */
.header-container {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}
