* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
    background-color: #2c2c2c;
    color: #fff;
    padding: 20px;
    min-height: 100vh;
}

/* Webフォント読み込み完了後に適用（オプション） */
.fonts-loaded body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.container {
    max-width: 400px;
    margin: 0 auto;
}

/* ヘッダータイトル */
.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.site-title {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
    letter-spacing: 0.5px;
}

/* バーガーメニュー */
.burger-menu {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s ease;
}

.burger-btn span {
    width: 20px;
    height: 2px;
    background-color: #666;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.burger-btn:hover span {
    background-color: #999;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.burger-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #393939;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.burger-menu-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.menu-item:hover {
    background-color: #4a4a4a;
    color: #fff;
}

/* アーカイブページ用戻るボタン */
.archive-back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.archive-back-btn {
    display: inline-block;
    padding: 6px 10px 7px 10px;
    background-color: #5437EE;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
}

.archive-back-btn:hover {
    background-color: #4429CC;
    color: #fff;
    transform: translateY(-1px);
}

/* Webフォント読み込み完了後に適用 */
.fonts-loaded .site-title {
    font-family: 'Noto Sans JP', sans-serif;
}

/* タブナビゲーション */
.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: 1px solid #666;
    color: #999;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.tab-btn:hover:not(.active) {
    border-color: #999;
    color: #ccc;
}

/* イベントリスト */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* イベントなしメッセージ */
.no-events-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    gap: 15px;
}

.no-events-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.7;
}

.no-events-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.event-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* 日時表示 */
.date-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    text-align: center;
    color: #fff;
}

.month-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 35px;
    background-color: #393939;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    position: relative;
}

.month-num {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;
}

/* Webフォント読み込み完了後に適用 */
.fonts-loaded .month-num {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

.month-num::after {
    content: '月';
    font-size: 11px;
    font-weight: 400;
    position: absolute;
    right: -11px;
    bottom: -5px;
}

.day-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 35px;
    background-color: #ffffff;
    border-radius: 0 0 15px 15px;
    margin-bottom: 8px;
    position: relative;
}

.day-num {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    position: relative;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;
}

/* Webフォント読み込み完了後に適用 */
.fonts-loaded .day-num {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

.day-num::after {
    content: '日';
    font-size: 11px;
    font-weight: 400;
    color: #000;
    position: absolute;
    right: -11px;
    bottom: -5px;
}

.time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #ccc;
}

.time {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

/* Webフォント読み込み完了後に適用 */
.fonts-loaded .time {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

.divider {
    color: #666;
    font-size: 10px;
}

.time-single {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Meiryo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
}

/* Webフォント読み込み完了後に適用 */
.fonts-loaded .time-single {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

/* イベントカード */
.event-card {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.event-tag {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #ffd700;
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    z-index: 2;
}

.event-content {
    position: relative;
}

.event-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 正方形を作成 */
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4fd 0%, #b8e0ff 100%);
    border-radius: 12px;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
    font-weight: 500;
}

.main-text {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.highlight-text {
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

.sub-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.bottom-text {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

.event-details {
    padding: 10px 0px;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
}

.event-speaker-info {
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}

.event-speaker-info div:first-child {
    margin-bottom: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .tab-navigation {
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .site-title {
        font-size: 12px;
    }
    
    .event-item {
        gap: 10px;
    }
    
    .date-time {
        min-width: 50px;
    }
    
    .day-num {
        font-size: 22px;
        margin-top: -5px;
    }
    
    .month-num {
        font-size: 22px;
        margin-top: -5px;
    }
    
    .event-image {
        padding-bottom: 100%; /* レスポンシブでも正方形を維持 */
    }
    
    .event-title {
        font-size: 14px;
    }
}

/* アニメーション */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); */
}

/* フォーカス状態 */
.tab-btn:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* ロード時のアニメーション */
.event-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.event-item:nth-child(1) {
    animation-delay: 0.1s;
}

.event-item:nth-child(2) {
    animation-delay: 0.2s;
}

.event-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 詳細ページ用のスタイル */
.event-detail ~ * .container,
.event-detail .container {
    max-width: 800px;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.back-button:hover {
    color: #fff;
}

.event-detail {
    background: transparent;
    margin-bottom: 20px;
}

.event-detail .event-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.event-detail .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail .event-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffd700;
    color: #000;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.event-detail .event-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #fff;
}

.event-description {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
}

.feature-list {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 16px;
    color: #ddd;
}

.feature-bullet {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 8px;
    flex-shrink: 0;
}

.closing-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
}

.event-details-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.speaker-section {
    flex: 1 1 100%;
    background: #393939;
    border-radius: 10px;
    padding: 20px;
}

.schedule-section {
    flex: 1;
    background: #393939;
    border-radius: 10px;
    padding: 20px;
}

.pricing-section {
    flex: 1;
    background: #393939;
    border-radius: 10px;
    padding: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #CCCCCC;
}

.speaker-info {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.schedule-info {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
}

.schedule-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.schedule-item i {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #ccc;
    font-size: 14px;
    margin-top: 2px;
}

.pricing-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

.pricing-item:last-child {
    margin-bottom: 0;
}

.pricing-label {
    font-weight: 500;
    color: #999;
}

.pricing-value {
    color: #fff;
    font-weight: 600;
}

.cta-button {
    width: 100%;
    height: 70px;
    background: #5437EE;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(84, 55, 238, 0.3);
    background: #4A2FD9;
}

/* 過去のイベント用ボタン */
.cta-button-past {
    background: #999999 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.cta-button-past:hover {
    background: #999999 !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: not-allowed !important;
}

/* 詳細ページ用レスポンシブデザイン */
@media (max-width: 768px) {
    .event-details-section {
        gap: 15px;
    }
    
    .event-detail .event-title {
        font-size: 18px;
    }
    
    .event-detail .event-image {
        height: 300px;
    }
    
    .cta-button {
        font-size: 14px;
        height: 60px;
    }
    
    .speaker-section,
    .schedule-section,
    .pricing-section {
        padding: 15px;
    }
    
    .schedule-info,
    .pricing-item {
        font-size: 13px;
    }
}

/* Lazy Loading用スタイル */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
}

.lazy-load::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #666;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    z-index: 1;
}

.lazy-load::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #393939;
    border-radius: 15px;
    z-index: 0;
}

.lazy-loaded {
    opacity: 1;
}

.lazy-loaded::before,
.lazy-loaded::after {
    display: none;
}

@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Coming Soon バッジのスタイル */
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* soonステータスのイベントカードのスタイル調整 */
.event-item .event-card[style*="cursor: default"] {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.event-item .event-card[style*="cursor: default"]:hover {
    opacity: 0.9;
    transform: none;
} 