@charset "UTF-8";
/*
 * Theme Name: Cocoon Child (Japanese Heart Branding)
 * Template: cocoon-master
 * */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@600;900&display=swap');
.site-name, .logo-text {
	    font-family: 'Noto Serif JP', serif !important;
	    font-weight: 900 !important;
	    letter-spacing: 0.1em;
	    color: #333 !important;
}
.ijin-grid {
	    display: grid;
	    grid-template-columns: repeat(3, 1fr);
	    gap: 30px;
	    max-width: 1000px;
	    margin: 50px auto;
	    padding: 0 20px;
}
.ijin-card {
	    text-align: center;
	    text-decoration: none;
	    transition: transform 0.3s ease;
}
.ijin-card:hover {
	    transform: translateY(-10px);
}
.ijin-card img {
	    width: 100%;
	    aspect-ratio: 1/1;
	    object-fit: cover;
	    border-radius: 15px;
	    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
	    border: 3px solid #fff;
}
.ijin-name {
	    margin-top: 15px;
	    font-family: 'Noto Serif JP', serif;
	    font-size: 1.1rem;
	    font-weight: 600;
	    color: #333;
}
@media (max-width: 768px) {
	.ijin-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
body.is-ijin-chat-page {
	    background-color: #cda05b !important;
	    margin-bottom: 100px;
}
body.is-ijin-chat-page .main,
body.is-ijin-chat-page #main,
body.is-ijin-chat-page .content-inner,
body.is-ijin-chat-page .entry-content,
body.is-ijin-chat-page .entry,
body.is-ijin-chat-page .article,
body.is-ijin-chat-page .content,
body.is-ijin-chat-page .wrap {
	    background: transparent !important;
	    box-shadow: none !important;
	    border: none !important;
}
#ijin-chat-app {
	    max-width: 650px;
	    margin: 0 auto;
}
#ijin-profile {
	    display: flex;
	    gap: 1.5rem;
	    align-items: center;
	    margin-bottom: 2rem;
	    background: rgba(255, 255, 255, 0.85);
	    padding: 15px;
	    border-radius: 20px;
	    backdrop-filter: blur(10px);
	    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#ijin-portrait {
	    width: 80px;
	    height: 80px;
	    border-radius: 50%;
	    object-fit: cover;
	    border: 3px solid #fff;
}
#ijin-name {
	    font-family: 'Noto Serif JP', serif;
	    font-size: 1.4rem;
	    margin: 0;
}
#ijin-bio {
	    font-size: 0.9rem;
	    color: #444;
	    margin: 5px 0 0;
	    font-weight: 600;
}
#ijin-chat-window {
	    height: calc(100vh - 350px);
	    min-height: 400px;
	    overflow-y: auto;
	    padding: 20px;
	    background: transparent !important; /* 背景を完全に透明に */
	    border-radius: 15px;
	    /* backdrop-filter: blur(8px); ぼかしも削除して背景画像をくっきり見せる */
}
.ijin-bubble-wrapper {
	    display: flex;
	    margin-bottom: 15px;
	    width: 100%;
}
.ijin-align-right { justify-content: flex-end; }
.ijin-align-left { justify-content: flex-start; }
.ijin-bubble {
	    padding: 10px 16px;
	    border-radius: 20px;
	    max-width: 80%;
	    font-size: 1rem;
	    line-height: 1.5;
	    position: relative;
	    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ijin-user {
	    background: #85e249;
	    color: #000;
	    border-bottom-right-radius: 2px;
}
.ijin-bot {
	    background: #fff;
	    color: #333;
	    border-bottom-left-radius: 2px;
}
#ijin-chat-form {
	    position: fixed;
	    bottom: 0;
	    left: 0;
	    width: 100%;
	    background: rgba(255, 255, 255, 0.95);
	    padding: 15px 0;
	    backdrop-filter: blur(10px);
	    border-top: 1px solid #ddd;
	    z-index: 9999;
}
.ijin-input-wrap {
	    max-width: 650px;
	    margin: 0 auto;
	    display: flex;
	    align-items: center;
	    gap: 10px;
	    padding: 0 15px;
	    position: relative;
}
#ijin-message {
	    flex: 1;
	    border: 1px solid #ccc;
	    border-radius: 25px;
	    padding: 12px 50px 12px 20px;
	    resize: none;
	    font-size: 1rem;
	    outline: none;
	    max-height: 100px;
}
.ijin-send-btn {
	    position: absolute;
	    right: 25px;
	    bottom: 8px;
	    background: #00b900 !important;
	    color: #fff !important;
	    border: none !important;
	    width: 40px;
	    height: 40px;
	    border-radius: 50% !important;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    padding: 0 !important;
	    cursor: pointer;
}
#ijin-notice-box {
	    margin-top: 30px;
	    background: rgba(255,255,255,0.8) !important;
	    padding: 20px;
	    border-radius: 15px;
	    color: #000 !important;
	    font-weight: 600;
}
#ijin-notice-box h3 { margin-bottom: 10px; border-left: 4px solid #cda05b; padding-left: 10px; }

/* 偉人選択グリッドをPCでもスマホでも「上3人、下3人」に強制 */
.ijin-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

@media (max-width: 600px) {
    /* スマホ画面で小さすぎる場合は2列にする場合はここを変更しますが、今回は3列を維持します */
    .ijin-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    .ijin-name {
        font-size: 0.8rem !important;
    }
}
/* =========================================
   偉人チャット画面 UI ＆ グリッド 完全版
========================================= */

/* 自動で入る目次やSNSボタンを非表示にする */
body.is-ijin-chat-page .toc,
body.is-ijin-chat-page .sns-share,
body.is-ijin-chat-page .sns-follow,
body.is-ijin-chat-page .sns-buttons { display: none !important; }

body.is-ijin-chat-page {
    background-color: #cda05b !important;
    margin-bottom: 100px;
}

/* 記事エリアの白い背景を完全に透明に（Cocoonの全コンテナに対応） */
body.is-ijin-chat-page .main,
body.is-ijin-chat-page #main,
body.is-ijin-chat-page .content-inner,
body.is-ijin-chat-page .entry-content,
body.is-ijin-chat-page .entry,
body.is-ijin-chat-page .article,
body.is-ijin-chat-page .content,
body.is-ijin-chat-page .wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#ijin-chat-app {
    max-width: 650px;
    margin: 0 auto;
}

/* プロフィール部分 */
#ijin-profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#ijin-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

#ijin-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    margin: 0;
}

#ijin-bio {
    font-size: 0.9rem;
    color: #444;
    margin: 5px 0 0;
    font-weight: 600;
}

/* チャットウィンドウ（会話エリア） */
#ijin-chat-window {
    height: calc(100vh - 350px);
    min-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: transparent !important; /* 背景を完全に透明に */
    border-radius: 15px;
    /* backdrop-filter: blur(8px); ぼかしも削除して背景画像をくっきり見せる */
}

/* 吹き出しの配置 */
.ijin-bubble-wrapper {
    display: flex;
    margin-bottom: 15px;
    width: 100%;
}

.ijin-align-right { justify-content: flex-end; }
.ijin-align-left { justify-content: flex-start; }

.ijin-bubble {
    padding: 10px 16px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ユーザー（緑）と偉人（白）の色 */
.ijin-user { background: #85e249; color: #000; border-bottom-right-radius: 2px; }
.ijin-bot { background: #fff; color: #333; border-bottom-left-radius: 2px; }

/* 下部固定の入力フォーム */
#ijin-chat-form {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent !important; /* 背景を透明に */
    padding: 15px 0;
    backdrop-filter: blur(5px); /* 少しだけぼかしを入れるとお洒落です（不要なら削除可） */
    border-top: none; /* 境界線も消してスッキリ */
    z-index: 9999;
}

.ijin-input-wrap {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    position: relative;
}

#ijin-message {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 12px 50px 12px 20px;
    resize: none;
    font-size: 1rem;
    outline: none;
    max-height: 100px;
}

.ijin-send-btn {
    position: absolute;
    right: 25px;
    bottom: 8px;
    background: #00b900 !important;
    color: #fff !important;
    border: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
}

/* 注意書き */
#ijin-notice-box {
    margin-top: 30px;
    background: rgba(255,255,255,0.8) !important;
    padding: 20px;
    border-radius: 15px;
    color: #000 !important;
    font-weight: 600;
}

/* 偉人選択グリッド（上3人、下3人に強制） */
.ijin-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}
@media (max-width: 600px) {
    .ijin-grid { gap: 10px !important; padding: 10px !important; }
    .ijin-name { font-size: 0.8rem !important; }
}
