/* scratch-event.css */

:root {
    --pixel-font: 'DotGothic16', sans-serif;
    --mario-sky: #87CEEB;
    --mario-ground: #8B4513;
    --mario-brick: #E97451;
    --mario-yellow: #FFD700;
    --mario-green: #2ecc71;
}

.scratch-event-page {
    overflow-x: hidden;
}

.pixel-text {
    font-family: var(--pixel-font) !important;
    letter-spacing: 1px;
}

/* =======================================
   HERO SECTION
   ======================================= */
.event-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--mario-sky);
    overflow: hidden;
    padding-top: 80px;
}

.hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pixel-box {
    background: #fff;
    padding: 40px;
    border: 4px solid #333;
    box-shadow: 8px 8px 0 #333;
    max-width: 600px;
}

.pixel-box .badge {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--pixel-font);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #333;
}

.hero-title .highlight {
    color: var(--primary);
    background: rgba(26, 92, 235, 0.1);
    padding: 0 5px;
}

.hero-lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Background elements */
.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: #fff;
    width: 100px;
    height: 40px;
    border-radius: 20px;
    opacity: 0.8;
}

.cloud::after, .cloud::before {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.cloud-1 { top: 15%; left: 10%; animation: float 20s infinite linear; }
.cloud-2 { top: 25%; left: 60%; animation: float 25s infinite linear reverse; }

@keyframes float {
    from { transform: translateX(-100px); }
    to { transform: translateX(calc(100vw + 100px)); }
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--mario-ground);
    border-top: 4px solid #5d2e0d;
    background-image: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}

/* =======================================
   PIXEL BUTTONS
   ======================================= */
.pixel-btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    text-decoration: none;
    text-align: center;
    border: 3px solid #333;
    box-shadow: 4px 4px 0 #333;
    transition: all 0.1s;
    cursor: pointer;
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #333;
}

.pixel-btn.btn-primary {
    background: var(--mario-yellow);
    color: #333;
}

.pixel-btn.btn-line {
    background: #06C755;
    color: #fff;
    border-color: #049b42;
}

/* =======================================
   MISSIONS SECTION
   ======================================= */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.mission-card {
    background: #fff;
    padding: 40px 30px;
    border: 3px solid #333;
    box-shadow: 6px 6px 0 #eee;
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 6px 6px 0 var(--primary-light);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-family: var(--pixel-font);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* =======================================
   DETAILS SECTION
   ======================================= */
.details-wrapper {
    background: #fff;
    padding: 60px;
    border: 4px solid #333;
    max-width: 900px;
    margin: 0 auto;
}

.details-wrapper h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.detail-item {
    border-bottom: 2px dashed #eee;
    padding-bottom: 15px;
}

.detail-item .label {
    display: block;
    font-family: var(--pixel-font);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.detail-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .missions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .event-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .pixel-box {
        padding: 25px 20px;
    }

    .mission-card {
        padding: 30px 20px;
    }
    
    .mission-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .details-wrapper {
        padding: 30px 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-registration .registration-box {
        padding: 40px 20px;
    }
    
    .registration-box .pixel-text {
        font-size: 1.8rem;
    }
    
    .registration-box p {
        font-size: 1rem;
    }

    .pixel-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .map-iframe-wrapper {
        width: 100% !important;
        overflow: hidden;
    }

    .map-iframe-wrapper iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
    }
}

/* =======================================
   REGISTRATION SECTION & CONTENT
   ======================================= */
.event-registration .registration-box {
    background: #fff;
    padding: 60px 40px;
    border: 4px solid #333;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 吹き出しのしっぽ風装飾 */
.event-registration .registration-box::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #333;
}

.registration-box .pixel-text {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
}

/* 投稿本文（WP Editorからの出力）のスタイリング */
.registration-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.registration-box ul {
    text-align: left;
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: var(--bg-light);
    border-left: 5px solid var(--mario-yellow);
}

.registration-box li {
    font-weight: 700;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.registration-box li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--mario-yellow);
    font-size: 0.8rem;
    top: 4px;
}

.cta-actions {
    margin-top: 50px;
}

.small-note {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

/* =======================================
   TEMPORARY OVERRIDES FOR EVENT PAGE
   ======================================= */
.page-template-page-scratch-event .site-header .main-navigation,
.page-template-page-scratch-event .site-header .header-cta,
.page-template-page-scratch-event .site-header .menu-toggle {
    display: none !important;
}

.page-template-page-scratch-event .site-header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    position: absolute;
}

.page-template-page-scratch-event .site-header .site-branding .site-title a {
    color: #333;
}

.page-template-page-scratch-event .site-footer {
    background: #f8f9fa;
    color: #333;
    border-top: 4px solid #333;
    padding: 30px 0 15px; /* さらに縮小 */
    margin-bottom: 0 !important;
}

.page-template-page-scratch-event .footer-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.page-template-page-scratch-event .site-info p {
    margin-bottom: 0; /* コピーライト下の余白を削除 */
}

.page-template-page-scratch-event .site-footer p,
.page-template-page-scratch-event .site-footer .footer-title {
    color: #333;
}

/* スクロール位置の調整（ボタンが少し下に来るように） */
#line-contact {
    scroll-margin-top: 100px;
}

.floating {
    animation: floating 3s infinite ease-in-out;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
