/* --- 1. 変数の設定 --- */
:root {
    --main-black: #222;
    --bg-red: #e60012; /* サイト全体の背景色（赤） */
    --white: #ffffff;
}

/* --- 2. 全体レイアウトの基礎 --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-red);
    color: var(--main-black);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- 3. ヘッダーのデザイン --- */
header {
    background: var(--white);
    border-bottom: 4px solid var(--main-black);
    padding: 5px 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    color: var(--main-black);
}

.header-logo-img {
    max-height: 90px;
    width: auto;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    transition: transform 0.2s ease;
}

.logo a:hover .header-logo-img {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px; 
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: var(--main-black);
    font-weight: 900;
    font-size: 0.9rem; 
    padding: 8px 16px; 
    border: 3px solid var(--main-black);
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 4px 0 var(--main-black);
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
}

@media (min-width: 768px) {
    nav a {
        font-size: 1.05rem;
        padding: 10px 24px;
    }
}

nav a:hover, 
nav a.active {
    background-color: #ffd700;
    color: var(--main-black);
}

nav a:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--main-black);
}

/* =========================================================
   ★コンポーネント化された共通デザイン
   ========================================================= */
section {
    margin: 2em;
}

.featured-section,
.contact-section,
.mysection,
.single-section {
    margin-bottom: 40px;
}
.featured-section { margin-top: 40px; }
.contact-section { margin-top: 40px; padding: 0 20px; display: flex; justify-content: center; }
.single-section { margin-top: 40px; }

/* 見出し */
.recommend-title,
.page-mytitle,
.single-mytitle,
.about-frame h3 {
    font-weight: 900;
    color: var(--main-black);
    border-bottom: 4px dashed var(--main-black) !important;
    display: inline-block !important;
    padding-bottom: 5px;
    margin-bottom: 30px;
    font-size: 2rem;
    margin-top: 0;
}
.recommend-title, 
.page-mytitle,
.single-mytitle {
    text-align: center;
}
.about-frame h3 {
    font-size: 1.5rem;
}

/* 本文 */
p { font-weight: bold; }

/* タイトルを中央配置 */
.page-title-area,
.single-title-area {
    text-align: center;
    width: 100%;
}

/* --- 4. 記事のカード型レイアウト --- */
.featured-grid,
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.article-grid { margin-bottom: 60px; }

@media (min-width: 600px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
}

.pop-card,
.featured-card,
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--main-black);
}
.pop-card { border: 3px solid var(--main-black); box-shadow: 4px 4px 0 var(--main-black); display: block; }
.featured-card { border: 2px solid #ddd; display: flex; flex-direction: column; }
.card { border: 2px solid var(--main-black); }

.pop-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--main-black);
    background-color: #fafafa;
}

.featured-card .thumb,
.card .thumb,
.pop-card .thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.featured-card .thumb { background: #444; color: var(--white); font-size: 1.2rem; }
.card .thumb { background: #e0e0e0; color: #888; border-bottom: 2px solid var(--main-black); }

/* --- 👇 オモコロ風のカードレイアウト 👇 --- */
.pop-card .card-content {
    padding: 12px 15px 15px; 
}

.pop-card .card-meta {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}

.pop-card .card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 900;
}

/* --- 5. お問い合わせフォーム --- */
.contact-desc { text-align: center; margin-bottom: 30px; color: var(--main-black); font-weight: bold; }
.form-group { margin-bottom: 25px; display: flex; flex-direction: column; }
.form-group label { font-weight: 900; margin-bottom: 8px; font-size: 1.05rem; color: var(--main-black); }
.contact-form input, .contact-form select, .contact-form textarea {
    font-family: inherit; font-size: 1rem; padding: 12px 15px; border: 2px solid var(--main-black);
    border-radius: 6px; background: var(--white); color: var(--main-black); transition: all 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--main-black); box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.6);
}
.form-submit { text-align: center; margin-top: 40px; }
.submit-btn {
    font-family: inherit; font-weight: 900; font-size: 1.2rem; color: var(--main-black); background: var(--white);
    padding: 12px 35px; border: 3px solid var(--main-black); border-radius: 30px; cursor: pointer;
    box-shadow: 0 4px 0 var(--main-black); transition: all 0.1s;
}
.submit-btn:hover { background: #ffd700; }
.submit-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--main-black); }


/* --- 8. 投稿記事ページ (single.php) 専用 --- */
.single-title-area { margin-bottom: 30px; }

.single-thumbnail { margin-bottom: 30px; text-align: center; }
.single-thumbnail img { max-width: 100%; height: auto; border: 2px solid var(--main-black); border-radius: 8px; }

.single-content { color: var(--main-black); }
.single-content h2 { font-size: 1.5rem; border-bottom: 3px solid var(--main-black); padding-bottom: 10px; margin: 40px 0 20px 0; }
.single-content h3 { font-size: 1.3rem; border-left: 5px solid var(--bg-red); padding-left: 10px; margin: 30px 0 15px 0; }

.page-content, .single-content, .about-frame { line-height: 1.8; font-size: 1.05rem; color: var(--main-black); }
.page-content p, .single-content p, .about-frame p { margin-bottom: 1.8em; }

/* 画像のはみ出し防止 */
img { max-width: 100%; height: auto; vertical-align: bottom; }
.single-content img, .page-content img, .about-frame img, .wp-block-image img { border-radius: 8px; box-shadow: 0 4px 0 rgba(0,0,0,0.1); }
figure.wp-block-image, .single-content figure, .page-content figure, .about-frame figure { margin: 30px 0; max-width: 100%; }

/* --- 12. ページネーション --- */
.page-links { margin: 50px 0 20px; text-align: center; font-weight: 900; }
.page-links a .page-number, .page-links > .page-number {
    display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; margin: 0 8px;
    border: 3px solid var(--main-black); border-radius: 50%; background: var(--white); color: var(--main-black);
    font-size: 1.1rem; text-decoration: none; box-shadow: 0 4px 0 var(--main-black); transition: all 0.1s;
}
.page-links a:hover .page-number { background: #ffd700; transform: translateY(2px); box-shadow: 0 2px 0 var(--main-black); }
.page-links > .page-number { background: var(--main-black); color: var(--white); transform: translateY(4px); box-shadow: 0 0 0 transparent; }

/* --- 14. ハンバーガーメニュー --- */
.hamburger-check { display: none; }
.hamburger { position: relative; }
.hamburger-icon { display: flex; flex-direction: column; justify-content: space-between; width: 34px; height: 24px; cursor: pointer; z-index: 100; }
.hamburger-icon span { display: block; width: 100%; height: 4px; background-color: var(--main-black); border-radius: 2px; transition: all 0.3s ease-in-out; }
.hamburger-content {
    position: absolute; top: 45px; right: 0; width: 240px !important; background: var(--white); border: 4px solid var(--main-black);
    border-radius: 8px; box-shadow: 0 6px 0 var(--main-black); padding: 20px 15px !important; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.3s ease-in-out; z-index: 99;
}
.hamburger-content ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.hamburger-content a {
    text-decoration: none !important; color: var(--main-black) !important; font-weight: 900; font-size: 1rem !important; display: block !important;
    text-align: center; padding: 10px !important; border: 3px solid var(--main-black) !important; border-radius: 30px !important;
    background: var(--white) !important; box-shadow: 0 4px 0 var(--main-black) !important; margin-bottom: 5px; transition: all 0.1s !important;
}
.hamburger-content a:hover { background: #ffd700 !important; }
.hamburger-content a:active { transform: translateY(4px) !important; box-shadow: 0 0 0 var(--main-black) !important; }
.hamburger-check:checked ~ .hamburger-content { opacity: 1; visibility: visible; transform: translateY(0); }
.hamburger-check:checked ~ .hamburger-icon span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-check:checked ~ .hamburger-icon span:nth-child(2) { opacity: 0; }
.hamburger-check:checked ~ .hamburger-icon span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* スマホ用メニュー切り替え */
@media (max-width: 768px) {
    .pc-nav { display: none !important; }
    header .container { flex-direction: row !important; justify-content: space-between !important; padding: 5px 20px !important; }
    .hamburger { position: static !important; }
    .hamburger-content {
        position: absolute !important; top: 100% !important; left: 0 !important; width: 100% !important; border: none !important;
        border-bottom: 4px solid var(--main-black) !important; border-radius: 0 !important; box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important; padding: 30px 20px !important;
    }
    .hamburger-content ul { width: 100% !important; }
    .hamburger-content a { width: 100% !important; box-sizing: border-box !important; padding: 15px !important; font-size: 1.1rem !important; margin-bottom: 12px !important; }
}
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* PC版（画面幅768px以上）でハンバーガーメニューを非表示 */
@media screen and (min-width: 768px) {
    .hamburger { display: none !important; }
}

/* --- 15. スケッチブック風 全体枠 --- */
.section-title {
    font-size: 2rem; font-weight: 900; color: var(--main-black); text-align: center; margin: 0 0 25px 0;
    display: inline-block; border-bottom: 4px dashed var(--main-black); padding-bottom: 5px;
}

.post-list-frame, .recommend-frame, .contact-frame, .about-frame, .single-frame {
    background-color: #fcfcfc;
    background-image: linear-gradient(#e0e0e0 1px, transparent 1px), linear-gradient(90deg, #e0e0e0 1px, transparent 1px) !important;
    background-size: 20px 20px !important; border: 4px solid var(--main-black) !important; border-radius: 2px !important;
    box-shadow: 5px 5px 0 #fff, 5px 5px 0 4px var(--main-black), 10px 10px 0 #fff, 10px 10px 0 4px var(--main-black) !important;
    padding: 40px 50px !important; margin-bottom: 50px;
}

@media (max-width: 600px) {
    .post-list-frame, .recommend-frame, .contact-frame, .about-frame, .single-frame { 
        padding: 20px 10px !important; border-width: 3px !important; 
    }
    section { margin: 0 0 40px 0 !important; }
    .container { padding: 0 10px !important; }
}

/* --- 19. スマホ限定スライダー --- */
.carousel-wrapper { position: relative; }
.carousel-arrow {
    display: none; position: absolute; top: 50%; transform: translateY(-50%); background: var(--white);
    border: 3px solid var(--main-black); border-radius: 50%; width: 44px; height: 44px; color: var(--main-black);
    cursor: pointer; z-index: 10; box-shadow: 0 4px 0 var(--main-black); padding: 0; transition: opacity 0.3s ease, transform 0.1s, box-shadow 0.1s;
}
.carousel-arrow svg { width: 22px; height: 22px; display: block; }
.carousel-arrow.is-hidden { opacity: 0; pointer-events: none; }
.carousel-arrow:active { transform: translateY(-50%) translateY(4px); box-shadow: 0 0 0 var(--main-black); }
.carousel-dots { display: none; }

@media (max-width: 600px) {
    .carousel-arrow { display: flex; align-items: center; justify-content: center; }
    .carousel-prev { left: -15px; } .carousel-next { right: -15px; }
    .article-grid.carousel-container {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 15px; padding-bottom: 10px;
    }
    .article-grid.carousel-container::-webkit-scrollbar { display: none; }
    .pop-card { flex: 0 0 100%; scroll-snap-align: center; }
    .carousel-dots { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
}

.carousel-dot {
    width: 14px; height: 14px; border-radius: 50%; background-color: var(--white); border: 3px solid var(--main-black);
    padding: 0; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 0 var(--main-black);
}
.carousel-dot.active { background-color: var(--bg-red); transform: scale(1.3) translateY(1px); box-shadow: 0 0 0 transparent; }

/* --- 26. 「お知らせ」カテゴリー --- */
.news-text-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.news-text-list li { border-bottom: 2px dashed var(--main-black); padding: 15px 10px; display: flex; align-items: center; gap: 20px; transition: background-color 0.2s; }
.news-text-list li:hover { background-color: rgba(255, 215, 0, 0.2); }
.news-date { font-weight: 900; color: var(--main-black); font-size: 0.95rem; white-space: nowrap; }
.news-title { font-weight: 900; color: var(--main-black); text-decoration: none; font-size: 1.1rem; line-height: 1.5; transition: all 0.2s; }
.news-title:hover { color: var(--bg-red); text-decoration: underline; text-decoration-style: dashed; }
@media (max-width: 600px) { .news-text-list li { flex-direction: column; align-items: flex-start; gap: 5px; } }

/* --- 27. YouTube埋め込み --- */
.wp-block-embed-youtube, .wp-block-embed.is-type-video { width: 100% !important; max-width: 100% !important; margin: 30px 0 !important; }
.wp-block-embed__wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.wp-block-embed__wrapper iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 3px solid var(--main-black) !important; border-radius: 8px !important; }
@media (max-width: 600px) { .wp-block-embed-youtube { margin: 20px 0 !important; } }

/* --- 32. UECARTマップ --- */
.uecart-map-frame { margin: 40px 0; border: 4px solid var(--main-black); position: relative; overflow: hidden; }
.uecart-map-frame iframe { display: block; width: 100%; }
@media (max-width: 600px) { .uecart-map-frame { margin: 20px 0; } .uecart-map-frame iframe { height: 300px; } }

/* =========================================================
   ★37. 個別記事下：全体サイトに戻るボタン（小さめ）
   ========================================================= */
.post-footer-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #ccc; 
    text-align: center;
}

.uecart-back-btn-small {
    display: inline-block;
    background-color: #fdfdfd;
    color: var(--main-black);
    font-weight: bold;
    font-size: 0.85rem; 
    padding: 8px 16px; 
    border: 2px solid var(--main-black); 
    box-shadow: 3px 3px 0 var(--main-black); 
    text-decoration: none;
    transition: all 0.1s ease;
    border-radius: 4px;
}

.uecart-back-btn-small:hover {
    background-color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 4px 4px 0 var(--main-black);
}

.uecart-back-btn-small:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 transparent;
}

/* =========================================================
   ★38. オモコロ風：カテゴリーバッジと日付のデザイン
   ========================================================= */
.single-meta-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    margin-top: 15px;
}

.card-cat {
    background-color: #5ab149; /* 基本は緑色 */
    color: var(--white); 
    font-size: 0.75rem; 
    font-weight: 900;
    padding: 4px 8px; 
    border-radius: 2px; 
    line-height: 1;
    display: inline-block;
}

.card-date {
    font-size: 0.8rem;
    font-weight: bold;
    color: #888; 
    letter-spacing: 0.05em;
}

/* 🎨 カテゴリーごとの色分け（スラッグ名に対応） */
.card-cat.cat-news { background-color: var(--bg-red); } /* お知らせ */
.card-cat.cat-art-gallery { background-color: #2196F3; } /* ギャラリー */
.card-cat.cat-ex-activities { background-color: #ff9800; } /* 課外活動 */
.card-cat.cat-ad-town { background-color: #9c27b0; } /* アド街サークル */

/* =========================================================
   レイアウトの調整（フッターの固定と背景色の制御）
   ========================================================= */
/* ① 画面の一番裏側（スクロールの限界を越えた時の色）を黒にする */
html { background-color: var(--main-black, #222); }

/* ② サイト自体の背景色指定を削除し、テーマの元の色（赤など）を復活させる */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* ③ メインコンテンツを自動的に伸ばして、フッターを一番下に押し下げる */
main.container { flex: 1; }

/* =========================================================
   ★ フッターの共通デザイン（PC・スマホ完全統一版）
   ========================================================= */
footer {
    background-color: var(--main-black, #222222) !important;
    color: #ffffff;
    padding-top: 40px;
    /* iPhoneのホームバー対策をしつつ、PCでも丁度いい余白にする */
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    text-align: center;
    margin-top: auto !important;
}

/* ご意見・ご相談エリア */
.footer-contact-area {
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-contact-text {
    color: #ffffff !important;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* お問い合わせボタン（PCでもスマホでも押しやすい共通サイズ） */
.footer-contact-btn {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: var(--main-black, #222222) !important;
    width: 90%;
    max-width: 320px; /* PCで見ても横に広がりすぎないように制限 */
    padding: 15px 10px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px); /* ホバー時に少し浮き上がるアニメーション */
}

/* SNSアイコンのエリア */
.footer-sns {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 25px; /* アイコン同士の隙間 */
}

.sns-button {
    display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 3px solid var(--main-black);
    border-radius: 50%; color: var(--white); box-shadow: 0 4px 0 var(--main-black); transition: all 0.1s ease; padding: 10px;
}

.sns-button svg {
    width: 24px;
    height: 24px;
    fill: #ffffff; /* アイコンを白に統一 */
    transition: 0.3s;
}

.x-link { background: #000000; }
.insta-link { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.sns-button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #ffd700; }
.sns-button:active { transform: translateY(2px); box-shadow: 0 0 0 transparent; }

/* コピーライト */
.copyright {
    font-size: 0.8rem;
    color: #aaaaaa;
    margin: 0;
}

/* =========================================================
   ★ ここから追加：オモコロ風会話レイアウト（PC用）
   ========================================================= */
.omocoro-style { display: flex; align-items: flex-start; margin-bottom: 30px; }
.omocoro-avatar { flex-shrink: 0; width: 90px; text-align: center; margin-right: 20px; }
/* ★ アイコンを角丸6px（四角）に戻す */
.omocoro-avatar img { width: 90px !important; height: 90px !important; border-radius: 6px; object-fit: cover; border: 3px solid #ccc; padding: 2px; background: #fff; display: block; margin: 0 auto 5px; }

.omocoro-name { 
    display: block; 
    font-size: 15px; 
    font-weight: 900; 
    line-height: 1.2; 
    margin-top: 5px; 
    letter-spacing: 0.05em;
    /* ★ 白いフチドリで背景から分離し、うっすら影を落とす（バッジなし） */
    text-shadow: 
        1.5px 1.5px 0 #fff, 
        -1.5px -1.5px 0 #fff, 
        -1.5px 1.5px 0 #fff, 
        1.5px -1.5px 0 #fff,
        0px 2px 4px rgba(0, 0, 0, 0.25);
}

.omocoro-content { font-size: 19px !important; font-weight: 700 !important; line-height: 1.7; color: #000 !important; margin: 0; padding-top: 4px; width: 100%; }

/* --- チャット内SNSボタン --- */
.omocoro-social { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn-sns { display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; color: #fff !important; font-weight: bold !important; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.1); white-space: nowrap; }
.btn-sns:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.btn-x { background-color: #000; padding: 5px 12px; border-radius: 20px; font-size: 11px; }
.btn-insta { background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); gap: 4px; padding: 5px 12px; border-radius: 20px; font-size: 11px; letter-spacing: 0.05em; text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); }
.insta-icon-css { width: 13px; height: 13px; border: 1.5px solid #fff; border-radius: 3px; position: relative; display: flex; justify-content: center; align-items: center; flex-shrink: 0; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); }
.insta-icon-css::before { content: ""; width: 3.5px; height: 3.5px; border: 1.5px solid #fff; border-radius: 50%; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); }
.insta-icon-css::after { content: ""; position: absolute; top: 1px; right: 1px; width: 1.5px; height: 1.5px; background-color: #fff; border-radius: 50%; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); }

/* =========================================================
   ★ ここから追加：記事シェアボタン（PC用）
   ========================================================= */
.uecart-share-area { margin-top: 40px; padding-top: 20px; border-top: 2px dashed #ccc; text-align: center; }
.uecart-share-title { font-size: 1rem; font-weight: bold; color: #666; margin-bottom: 15px; }
.uecart-share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; font-weight: bold; font-size: 0.9rem; text-decoration: none !important; border-radius: 30px; border: 2px solid var(--main-black); box-shadow: 2px 2px 0 var(--main-black); transition: all 0.1s ease; cursor: pointer; white-space: nowrap; }
.share-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 transparent; }
.share-x { background-color: #000; color: #fff !important; }
.share-x:hover { opacity: 0.8; }
.share-line { background-color: #06C755; color: #fff !important; }
.share-line:hover { background-color: #05b34c; }
.share-copy { background-color: #fff; color: var(--main-black) !important; }
.share-copy:hover { background-color: #f5f5f5; }

/* =========================================================
   📱 スマホ専用：強制縮小レイアウト（絶対に潰れない）
   ========================================================= */
@media (max-width: 600px) {
    /* 会話レイアウトの縮小 */
    .omocoro-style { margin-bottom: 20px; }
    .omocoro-avatar { width: 70px; margin-right: 12px; }
    
    /* ★ スマホ版もアイコンを角丸6px（四角）に戻す */
    .omocoro-avatar img { width: 70px !important; height: 70px !important; border-radius: 6px; }
    
    .omocoro-name { font-size: 13px; }
    .omocoro-content { font-size: 16px !important; }
    
    /* チャット内SNSボタンの極小化 */
    .omocoro-social { gap: 6px; margin-top: 5px; }
    .btn-sns { padding: 3px 8px; font-size: 9px; }
    .insta-icon-css { width: 10px; height: 10px; border-width: 1px; }
    .insta-icon-css::before { width: 2.5px; height: 2.5px; border-width: 1px; }
    .insta-icon-css::after { width: 1px; height: 1px; }

    /* シェアボタンの縮小 */
    .uecart-share-area { margin-top: 30px; padding-top: 15px; border-top-width: 1px; }
    .uecart-share-title { font-size: 0.9rem; margin-bottom: 12px; }
    .uecart-share-buttons { gap: 8px; padding: 0; }
    .share-btn { padding: 6px 12px; font-size: 0.8rem; border-width: 1.5px; box-shadow: 1.5px 1.5px 0 var(--main-black); }
    .share-btn:active { transform: translate(1.5px, 1.5px); box-shadow: 0 0 0 transparent; }
}

/* =========================================================
   ★ WordPress標準の画像配置（中央・左・右）を有効化
   ========================================================= */

/* ブロックエディタの画像コンテナを中央に寄せる */
.wp-block-image.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* 画像そのものを中央に寄せる */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* おまけ：左寄せ・右寄せも使えるようにする */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* 回り込みを解除（画像の下に文字が入り込むのを防ぐ） */
.single-content::after {
    content: "";
    display: block;
    clear: both;
}
