@charset "UTF-8";
/**
 * PE-LOG 共通スタイル
 * フッター・マスコット用（全ページ適用）
 */

/* =========================================
   CSS Variables
   ========================================= */
:root {
    --pelog-bg-white: #ffffff;
    --pelog-bg-black: #111111;
    --pelog-bg-gray: #f4f4f5;
    --pelog-text-main: #1d1d1f;
    --pelog-accent: #0071e3;
    --pelog-accent-orange: #ff9f0a;
    --pelog-accent-green: #3e6750;
    --pelog-note-color: #41c9b4;
    --pelog-radius: 16px;
}

/* =========================================
   Container
   ========================================= */
.pelog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* =========================================
   Footer Wrapper (マスコット配置用)
   ========================================= */
.pelog-footer-wrapper {
    position: relative;
}

/* =========================================
   Mascot (Back to Top)
   ========================================= */
.pelog-footer-wrapper .pelog-mascot-container {
    position: absolute;
    top: -106px;
    right: 15%;
    width: 80px;
    height: 80px;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.pelog-mascot-img {
    width: 100%;
    display: block;
    image-rendering: pixelated;
    transition: transform 0.2s;
}

.pelog-mascot-container:hover .pelog-mascot-img {
    transform: translateY(-1px);
}

.pelog-mascot-bubble {
    position: absolute;
    bottom: 110%;
    right: -20px;
    width: 140px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8) translateY(10px);
    pointer-events: none;
}

.pelog-mascot-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 40px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
}

.pelog-mascot-container:hover .pelog-mascot-bubble {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* =========================================
   FOOTER
   ========================================= */
.pelog-footer {
    position: relative;
    z-index: 2;
}

.pelog-footer-links-section {
    background: #111;
    color: #fff;
    padding: 80px 0 60px;
}

.pelog-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.pelog-footer-col-brand img {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: invert(1);
}

.pelog-footer-brand-desc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 30px;
}

.pelog-footer-social-links {
    display: flex;
    gap: 12px;
}

.pelog-social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.pelog-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pelog-social-icon:hover {
    transform: translateY(-3px);
}

.pelog-social-icon.pelog-note:hover {
    background: var(--pelog-note-color);
}

.pelog-social-icon.pelog-x:hover {
    background: #000;
    border: 1px solid #333;
}

.pelog-social-icon.pelog-youtube:hover {
    background: #ff0000;
}

.pelog-social-icon.pelog-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.pelog-footer-col h4 {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #666;
}

.pelog-footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pelog-footer-link-list li {
    margin-bottom: 12px;
}

.pelog-footer-link-list a {
    font-size: 0.9rem;
    color: #ccc;
    transition: 0.2s;
    text-decoration: none;
}

.pelog-footer-link-list a:hover {
    color: #fff;
}

.pelog-footer-copyright {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

.pelog-footer-copyright .pelog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pelog-footer-copyright img {
    height: 24px;
    opacity: 0.6;
    filter: grayscale(100%);
}

/* Cocoonデフォルトの「トップへ戻る」ボタンのみ非表示 */
.go-to-top {
    display: none !important;
}

/* =========================================
   サイドバー固定スクロール停止位置調整
   ========================================= */
/* 独自フッターの上で停止するように余白を確保 */
#sidebar {
    margin-bottom: 150px;
}

/* Cocoonのstickyサイドバーがpelog-footerの上で止まるように */
.pelog-footer-wrapper {
    clear: both;
}

/* =========================================
   Spark Effect (タップ時のエフェクト)
   ========================================= */
.pelog-spark {
    position: absolute;
    font-size: 16px;
    pointer-events: none;
    animation: pelog-spark-fly 0.6s ease-out forwards;
    z-index: 100;
    filter: drop-shadow(0 0 2px rgba(255, 200, 0, 0.8));
}

@keyframes pelog-spark-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.5);
    }
}

/* =========================================
   Sidebar Profile Widget
   ========================================= */
.widget_author_box {
    background: #f5f5f5;
    border-radius: var(--pelog-radius);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
}

.widget_author_box .widget-sidebar-title {
    background: var(--pelog-bg-black);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 12px 16px;
    margin: 0;
    border: none;
}

.widget_author_box .author-box {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* プロフィール画像 */
.widget_author_box .author-thumb {
    width: 100px;
    height: 100px;
    margin: 0 0 16px 0;
    flex-shrink: 0;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget_author_box .author-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.2);
}

.widget_author_box .author-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

/* 著者名 */
.widget_author_box .author-name {
    margin-bottom: 12px;
}

.widget_author_box .author-name a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pelog-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.widget_author_box .author-name a:hover {
    color: var(--pelog-accent);
}

/* 説明文 */
.widget_author_box .author-description {
    font-size: 0.8rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.widget_author_box .author-description p {
    margin: 0 0 8px;
}

.widget_author_box .author-description p:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    font-size: 0.75rem;
    color: #888;
}

/* SNSフォローエリア */
.widget_author_box .profile-follows {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.widget_author_box .sns-follow {
    background: transparent;
}

.widget_author_box .sns-follow-message {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.widget_author_box .sns-follow-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.widget_author_box .sns-follow-buttons .sns-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #666;
    transition: all 0.3s ease;
    border: none;
    font-size: 0;
}

.widget_author_box .sns-follow-buttons .sns-button::before {
    font-size: 16px;
}

.widget_author_box .sns-follow-buttons .sns-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 各SNSボタンのホバー色 */
.widget_author_box .sns-follow-buttons .x-corp-button:hover,
.widget_author_box .sns-follow-buttons .twitter-button:hover {
    background: #000;
    color: #fff;
}

.widget_author_box .sns-follow-buttons .instagram-button:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.widget_author_box .sns-follow-buttons .youtube-button:hover {
    background: #ff0000;
    color: #fff;
}

.widget_author_box .sns-follow-buttons .note-button:hover {
    background: var(--pelog-note-color);
    color: #fff;
}

.widget_author_box .sns-follow-buttons .feedly-button:hover {
    background: #2bb24c;
    color: #fff;
}

.widget_author_box .sns-follow-buttons .rss-button:hover {
    background: #f26522;
    color: #fff;
}

/* フォロワーカウント非表示（あれば） */
.widget_author_box .follow-count {
    display: none;
}

/* =========================================
   Comment Section
   ========================================= */
.comment-area {
    margin-top: 40px;
}

/* コメントタイトル */
.comment-title {
    background: var(--pelog-bg-black);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 20px;
    margin: 0 0 20px;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.05em;
}

/* コメントリスト */
.commets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commets-list > li {
    margin-bottom: 20px;
}

/* 各コメント */
.comment-body {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-body.article {
    border: none;
}

/* コメント投稿者 */
.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--pelog-text-main);
    font-style: normal;
}

.comment-author .says {
    color: #888;
    font-size: 0.85rem;
}

/* 投稿者本人のコメント */
.bypostauthor > .comment-body {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border-left: 4px solid var(--pelog-accent);
}

/* コメントメタ（日時） */
.comment-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

.comment-meta a {
    color: #888;
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--pelog-accent);
}

.comment-edit-link {
    margin-left: 8px;
    font-size: 0.75rem;
}

/* コメント本文 */
.comment-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.comment-content p {
    margin: 0 0 10px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content a {
    color: var(--pelog-accent);
    word-break: break-all;
}

/* 返信ボタン */
.comment-body .reply {
    margin-top: 12px;
    text-align: right;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #e8e8e8;
    color: #666;
    font-size: 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--pelog-accent);
    color: #fff;
}

/* 子コメント（返信） */
.children {
    list-style: none;
    padding-left: 30px;
    margin-top: 15px;
    border-left: 2px solid #e0e0e0;
}

.children li {
    margin-bottom: 15px;
}

/* コメントフォーム */
.comment-form-wrap {
    margin-top: 30px;
}

/* コメント投稿ボタン */
.comment-btn,
#comment-reply-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--pelog-bg-black);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-btn:hover,
#comment-reply-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* コメントフォーム内 */
#respond {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
}

.comment-reply-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pelog-text-main);
    margin: 0 0 16px;
}

.comment-reply-title small a {
    font-size: 0.8rem;
    color: #888;
    margin-left: 10px;
}

.logged-in-as {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
}

.logged-in-as a {
    color: var(--pelog-accent);
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--pelog-accent);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* 送信ボタン */
.comment-form .submit {
    display: inline-block;
    padding: 12px 32px;
    background: var(--pelog-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.comment-form .submit:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

/* レスポンシブ */
@media (max-width: 600px) {
    .children {
        padding-left: 15px;
    }
    
    .comment-body {
        padding: 16px;
    }
    
    #respond {
        padding: 16px;
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .pelog-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .pelog-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pelog-footer-col-brand {
        text-align: center;
    }
    
    .pelog-footer-col-brand img {
        margin: 0 auto 20px;
    }
    
    .pelog-footer-social-links {
        justify-content: center;
    }
    
    .pelog-footer-wrapper .pelog-mascot-container {
        right: 6%;
        top: -106px;
    }
    
    /* サイドバープロフィール（モバイル時） */
    .widget_author_box .author-thumb {
        width: 80px;
        height: 80px;
    }
    
    .widget_author_box .author-description {
        font-size: 0.75rem;
    }
}

/* =========================================
   Buys Page (固定ページ用グリッド表示)
   ========================================= */

/* 固定ページID:17815の記事ヘッダーを非表示 */
body.page-id-17815 .article-header {
    display: none;
}

.pelog-buys-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ヘッダー */
.pelog-buys-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.pelog-buys-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pelog-text-main);
    margin: 0 0 10px;
    letter-spacing: 0.05em;
}

.pelog-buys-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0 0 15px;
}

.pelog-buys-count {
    display: inline-block;
    background: var(--pelog-bg-black);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* グリッド */
.pelog-buys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pelog-buys-page[data-columns="2"] .pelog-buys-grid {
    grid-template-columns: repeat(2, 1fr);
}
.pelog-buys-page[data-columns="3"] .pelog-buys-grid {
    grid-template-columns: repeat(3, 1fr);
}
.pelog-buys-page[data-columns="5"] .pelog-buys-grid {
    grid-template-columns: repeat(5, 1fr);
}
.pelog-buys-page[data-columns="6"] .pelog-buys-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* カード */
.pelog-buys-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.pelog-buys-card:hover {
    transform: translateY(-8px);
}

.pelog-buys-card-inner {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pelog-buys-card:hover .pelog-buys-card-inner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* サムネイル */
.pelog-buys-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.pelog-buys-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.pelog-buys-card:hover .pelog-buys-thumb img {
    transform: scale(1.08);
}

/* ショップバッジ */
.pelog-shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.02em;
}

.pelog-shop-badge.amazon {
    background: linear-gradient(135deg, #ff9900 0%, #e88a00 100%);
}

.pelog-shop-badge.rakuten {
    background: linear-gradient(135deg, #bf0000 0%, #a00000 100%);
}

.pelog-shop-badge.yahoo {
    background: linear-gradient(135deg, #ff0033 0%, #cc0029 100%);
}

.pelog-shop-badge.official {
    background: linear-gradient(135deg, #333 0%, #111 100%);
}

.pelog-shop-badge.store {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.pelog-shop-badge.other {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

/* 商品情報 */
.pelog-buys-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pelog-buys-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pelog-text-main);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pelog-buys-brand {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: auto;
}

.pelog-buys-date {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .pelog-buys-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pelog-buys-page[data-columns="5"] .pelog-buys-grid,
    .pelog-buys-page[data-columns="6"] .pelog-buys-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pelog-buys-page {
        padding: 30px 16px 50px;
    }
    
    .pelog-buys-header {
        margin-bottom: 30px;
    }
    
    .pelog-buys-title {
        font-size: 1.8rem;
    }
    
    .pelog-buys-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .pelog-buys-page[data-columns="3"] .pelog-buys-grid,
    .pelog-buys-page[data-columns="4"] .pelog-buys-grid,
    .pelog-buys-page[data-columns="5"] .pelog-buys-grid,
    .pelog-buys-page[data-columns="6"] .pelog-buys-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pelog-buys-thumb {
        padding: 15px;
    }
    
    .pelog-buys-info {
        padding: 12px;
    }
    
    .pelog-buys-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pelog-buys-title {
        font-size: 1.5rem;
    }
    
    .pelog-buys-subtitle {
        font-size: 0.85rem;
    }
    
    .pelog-buys-card-inner {
        border-radius: 12px;
    }
    
    .pelog-shop-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}