@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);
    }
}

/* =========================================
   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;
    }
}