/* App Layout Styles */
/* Body padding to account for fixed header */
.main-content {
    padding-top: 0;
    /* No padding - header overlays */
}

/* Header background animation */
.header-transparent {
    background-color: rgba(255, 255, 255, 0);
}

.header-solid {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay .bg-white {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active .bg-white {
    transform: translateX(0);
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
}

/* Event card hover effects */
.event-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 16px 0px rgba(204, 204, 204, 0.4);
}

/* Apply button hover effect */
.apply-button {
    transition: background-color 0.2s ease-in-out;
}

.apply-button:hover {
    background-color: #d91921;
}

/* Text wrapping for long content */
.event-detail-content h1,
.event-detail-content h2,
.event-detail-content h3,
.event-detail-content h4,
.event-detail-content h5,
.event-detail-content h6 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-detail-content p,
.event-detail-content div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* フォントファミリー用のクラス */
.font-jost {
    font-family: 'Jost', sans-serif;
}

.font-noto-sans-jp {
    font-family: 'Noto Sans JP', sans-serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-poppins-noto {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.font-century-gothic {
    font-family: 'Century Gothic', sans-serif;
}

/* ユーティリティクラス */
.box-shadow-soft {
    box-shadow: 0px 6px 8px 0px rgba(0,0,0,0.03);
}

.word-break-all {
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-text-color {
    color: rgba(255, 255, 255, 0.7);
}

.text-ellipsis-3-lines {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-2-lines {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iframe-full-responsive {
    border: none;
    max-width: 100%;
    max-height: 100vh;
}

/* Cookie consent styles */
.cookies--accepted {
    display: none !important;
}

.cookies__expandable {
    display: block;
}

.cookies__expandable.hidden {
    display: none !important;
}

.cookies {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.cookies__alert {
    animation: none !important;
}

.cookies {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.cookies::-webkit-scrollbar {
    width: 6px;
}

.cookies::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.cookies::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.cookies::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cookies__intro a {
    color: #ee1c25 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.cookies__intro a:hover {
    color: #dc2626 !important;
    text-decoration: underline !important;
}

.cookies__intro a:focus {
    outline: 2px solid #ee1c25 !important;
    outline-offset: 2px !important;
    border-radius: 2px !important;
}

@media (max-width: 768px) {
    .cookies {
        max-height: 90vh !important;
    }
}

@media (min-width: 768px) {
    .cookies {
        bottom: 0;
        max-height: 70vh;
    }

    body.cookies-expanded {
        margin-bottom: 0;
    }
}
