2026-03-03 14:56:12 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="ja">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<meta name="robots" content="noindex, nofollow">
|
2026-04-04 17:54:21 +00:00
|
|
|
|
<!-- Auth Gate -->
|
|
|
|
|
|
<script>
|
|
|
|
|
|
(function () {
|
|
|
|
|
|
var apiKey = localStorage.getItem('posimai_api_key') || '';
|
|
|
|
|
|
var token = localStorage.getItem('posimai_token') || '';
|
|
|
|
|
|
if (!apiKey && !token) {
|
|
|
|
|
|
location.href = 'https://posimai.soar-enrich.com/login?redirect=' + encodeURIComponent(location.href);
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
if (token && !apiKey) {
|
|
|
|
|
|
fetch('https://api.soar-enrich.com/brain/api/auth/session/verify', {
|
|
|
|
|
|
headers: { 'Authorization': 'Bearer ' + token }
|
|
|
|
|
|
}).then(function (r) { return r.json(); }).then(function (d) {
|
|
|
|
|
|
if (!d.ok) {
|
|
|
|
|
|
localStorage.removeItem('posimai_token');
|
|
|
|
|
|
location.href = 'https://posimai.soar-enrich.com/login?redirect=' + encodeURIComponent(location.href);
|
|
|
|
|
|
} else if (!d.purchased) {
|
|
|
|
|
|
location.href = 'https://store.posimai.soar-enrich.com/index-c.html';
|
|
|
|
|
|
}
|
|
|
|
|
|
}).catch(function () { /* オフライン時は通す */ });
|
|
|
|
|
|
}
|
|
|
|
|
|
})();
|
|
|
|
|
|
</script>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<meta name="description" content="ITエンジニア・デザイナーの学習を加速するイベント情報">
|
|
|
|
|
|
<title>Posimai Tech Events</title>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
<!-- PWA -->
|
|
|
|
|
|
<link rel="manifest" href="/manifest.json">
|
|
|
|
|
|
<link rel="icon" type="image/png" href="/logo.png">
|
|
|
|
|
|
<link rel="apple-touch-icon" href="/logo.png">
|
2026-03-17 07:41:38 +00:00
|
|
|
|
<meta name="color-scheme" content="dark light">
|
|
|
|
|
|
<meta name="theme-color" content="#0D0D0D" media="(prefers-color-scheme: dark)">
|
|
|
|
|
|
<meta name="theme-color" content="#F9FAFB" media="(prefers-color-scheme: light)">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Posimai Tech">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
2026-03-27 11:25:20 +00:00
|
|
|
|
<script src="https://unpkg.com/lucide@0.344.0/dist/umd/lucide.min.js" integrity="sha384-tTkFttkBclaU1cloKwOi9xk3pbao3VZxTjLNBt8iFABWDBQibbAbWpVmO28zMuxq" crossorigin="anonymous"></script>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
2026-03-20 05:07:52 +00:00
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
2026-03-27 11:25:20 +00:00
|
|
|
|
<link rel="preconnect" href="https://unpkg.com" crossorigin>
|
2026-03-20 05:07:52 +00:00
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
2026-03-20 05:07:52 +00:00
|
|
|
|
<style>
|
2026-03-16 08:23:01 +00:00
|
|
|
|
*,
|
|
|
|
|
|
*::before,
|
|
|
|
|
|
*::after {
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
:root {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
--bg: #0D0D0D;
|
|
|
|
|
|
--surface: #1A1A1A;
|
|
|
|
|
|
--surface2: #252525;
|
|
|
|
|
|
--border: #2D2D2D;
|
|
|
|
|
|
--text: #F3F4F6;
|
|
|
|
|
|
--text2: #9CA3AF;
|
|
|
|
|
|
--text3: #6B7280;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
--accent: #6EE7B7;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
--accent-dim: rgba(110, 231, 183, 0.12);
|
|
|
|
|
|
--accent-border: rgba(110, 231, 183, 0.25);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
--status-active: #6EE7B7;
|
|
|
|
|
|
--status-upcoming: #6EE7B7;
|
|
|
|
|
|
--status-ended: #4B5563;
|
|
|
|
|
|
--rose: #F87171;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
--radius: 12px;
|
|
|
|
|
|
--header-h: 52px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
color-scheme: dark;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[data-theme="light"] {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
--bg: #F5F5F5;
|
|
|
|
|
|
--surface: #FFFFFF;
|
|
|
|
|
|
--surface2: #EBEBEB;
|
|
|
|
|
|
--border: #E0E0E0;
|
|
|
|
|
|
--text: #111111;
|
|
|
|
|
|
--text2: #555555;
|
|
|
|
|
|
--text3: #888888;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
--accent: #059669;
|
|
|
|
|
|
--accent-dim: rgba(5, 150, 105, 0.08);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
--accent-border: rgba(5, 150, 105, 0.25);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
--status-active: #059669;
|
|
|
|
|
|
--status-upcoming: #059669;
|
|
|
|
|
|
--status-ended: #9CA3AF;
|
|
|
|
|
|
color-scheme: light;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
html,
|
|
|
|
|
|
body {
|
|
|
|
|
|
height: 100dvh;
|
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
/* Header */
|
|
|
|
|
|
.header {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
height: var(--header-h);
|
|
|
|
|
|
min-height: var(--header-h);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
background: rgba(26, 26, 26, 0.92);
|
|
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
|
|
-webkit-backdrop-filter: blur(12px);
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 50;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[data-theme="light"] .header {
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.92);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-logo {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-dot {
|
|
|
|
|
|
width: 8px;
|
|
|
|
|
|
height: 8px;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
|
box-shadow: 0 0 8px var(--accent);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.header-title {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
letter-spacing: -0.3px;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-meta {
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
margin-left: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 4px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon-btn {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
cursor: pointer;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
transition: color 0.15s, background 0.15s;
|
|
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
.icon-btn:hover {
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
background: var(--surface2);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon-btn i {
|
|
|
|
|
|
width: 16px;
|
|
|
|
|
|
height: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.icon-btn.has-filter {
|
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
/* Filter Tabs */
|
|
|
|
|
|
.filter-bar {
|
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
|
background: var(--surface);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.filter-tab {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
height: 40px;
|
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: color 0.15s, border-color 0.15s;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.filter-tab:hover {
|
|
|
|
|
|
color: var(--text);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
.filter-tab.active {
|
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
|
border-bottom-color: var(--accent);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.filter-count {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
min-width: 18px;
|
|
|
|
|
|
height: 16px;
|
|
|
|
|
|
padding: 0 4px;
|
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-weight: 600;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
/* Active Filter Chips */
|
|
|
|
|
|
.active-filters {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
align-items: center;
|
2026-03-03 15:26:21 +00:00
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.active-filters::-webkit-scrollbar {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.active-filters:empty {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.active-filters.hidden {
|
|
|
|
|
|
display: none;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-03 15:26:21 +00:00
|
|
|
|
|
|
|
|
|
|
.chip {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
border: 1px solid var(--accent-border);
|
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
flex-shrink: 0;
|
2026-03-03 15:26:21 +00:00
|
|
|
|
transition: background 0.15s;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
.chip:hover {
|
|
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
opacity: 0.85;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.chip i {
|
|
|
|
|
|
width: 10px;
|
|
|
|
|
|
height: 10px;
|
|
|
|
|
|
}
|
2026-03-03 15:26:21 +00:00
|
|
|
|
|
|
|
|
|
|
/* Content */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.content {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-inner {
|
|
|
|
|
|
max-width: 720px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
padding: 16px 16px 80px;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
/* Section Divider */
|
|
|
|
|
|
.section-label {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
margin: 20px 0 10px;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
letter-spacing: 0.08em;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-label:first-child {
|
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-label::after {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
height: 1px;
|
|
|
|
|
|
background: var(--border);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Event Card */
|
|
|
|
|
|
.event-card {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
padding: 14px 0;
|
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: background 0.1s;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
.event-card:last-child {
|
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.event-card:hover {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
margin: 0 -12px;
|
|
|
|
|
|
padding: 14px 12px;
|
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
border-bottom-color: transparent;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
/* Date Badge */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.date-badge {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
width: 40px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
padding-top: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.date-badge-day {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.date-badge-sub {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
|
letter-spacing: 0.03em;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
/* Event Body */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.event-body {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.event-tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
.tag {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
padding: 1px 7px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
letter-spacing: 0.03em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tag-active {
|
|
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
color: var(--status-active);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.tag-upcoming {
|
|
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
color: var(--status-upcoming);
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tag-ended {
|
|
|
|
|
|
background: rgba(75, 85, 99, 0.15);
|
|
|
|
|
|
color: var(--status-ended);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tag-category {
|
|
|
|
|
|
background: var(--surface2);
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tag-interest {
|
|
|
|
|
|
background: rgba(129, 140, 248, 0.12);
|
|
|
|
|
|
color: #818CF8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tag-audience {
|
|
|
|
|
|
background: rgba(251, 191, 36, 0.12);
|
|
|
|
|
|
color: #D97706;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.event-title {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.event-card[data-status="ended"] .event-title {
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
.event-location {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
margin-bottom: 4px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.event-location i {
|
|
|
|
|
|
width: 12px;
|
|
|
|
|
|
height: 12px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.event-time {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.event-time i {
|
|
|
|
|
|
width: 11px;
|
|
|
|
|
|
height: 11px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
/* Card Actions */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.event-actions {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
padding-top: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.action-btn {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
background: none;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: color 0.2s, background 0.15s;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-btn:hover {
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
background: var(--surface2);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-btn i {
|
|
|
|
|
|
width: 14px;
|
|
|
|
|
|
height: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-btn.saved {
|
|
|
|
|
|
color: var(--accent);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Empty State */
|
|
|
|
|
|
.empty-state {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
padding: 64px 24px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.empty-state i {
|
|
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
opacity: 0.4;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.empty-state p {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
line-height: 1.6;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
/* Bottom Sheet (shared) */
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.sheet-backdrop {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: none;
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transition: opacity 0.25s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sheet-backdrop.open {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
opacity: 1;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.bottom-sheet {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
position: fixed;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
background: var(--surface);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
border-radius: 16px 16px 0 0;
|
|
|
|
|
|
border-top: 1px solid var(--border);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
z-index: 101;
|
|
|
|
|
|
transform: translateY(100%);
|
|
|
|
|
|
transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
max-height: 85dvh;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.bottom-sheet.open {
|
|
|
|
|
|
transform: translateY(0);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.bottom-sheet {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
left: auto;
|
|
|
|
|
|
right: 16px;
|
|
|
|
|
|
bottom: 16px;
|
|
|
|
|
|
width: 420px;
|
|
|
|
|
|
max-height: 75dvh;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sheet-handle {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 4px;
|
|
|
|
|
|
background: var(--border);
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
margin: 10px auto 0;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
|
|
|
|
|
.sheet-handle {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sheet-header {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 14px 16px 10px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sheet-title-text {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sheet-body {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
padding: 0 16px 24px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-03 15:26:21 +00:00
|
|
|
|
|
|
|
|
|
|
/* Preference Sheet specific */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.pref-section {
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.pref-section-title {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--text3);
|
|
|
|
|
|
letter-spacing: 0.08em;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.pref-section-title i {
|
|
|
|
|
|
width: 12px;
|
|
|
|
|
|
height: 12px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
.pref-tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.pref-tag {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 5px;
|
|
|
|
|
|
padding: 5px 12px;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
background: var(--surface2);
|
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.15s;
|
|
|
|
|
|
user-select: none;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.pref-tag.selected {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
background: var(--accent-dim);
|
|
|
|
|
|
border-color: var(--accent-border);
|
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.pref-tag i {
|
|
|
|
|
|
width: 12px;
|
|
|
|
|
|
height: 12px;
|
2026-03-03 15:26:21 +00:00
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.pref-footer {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
|
flex-shrink: 0;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
/* Detail Sheet specific */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.sheet-status-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
.sheet-title-h2 {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
font-size: 17px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
margin-bottom: 14px;
|
2026-03-03 15:26:21 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.sheet-meta-row {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
margin-bottom: 8px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
.sheet-meta-row i {
|
|
|
|
|
|
width: 14px;
|
|
|
|
|
|
height: 14px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
margin-top: 1px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sheet-interest-tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
margin: 10px 0 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.sheet-desc {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: var(--text2);
|
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
|
margin: 14px 0;
|
|
|
|
|
|
padding-top: 14px;
|
|
|
|
|
|
border-top: 1px solid var(--border);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
/* Buttons */
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.btn-primary {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
height: 38px;
|
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
|
color: #0D1210;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-primary:hover {
|
|
|
|
|
|
opacity: 0.85;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-primary i {
|
|
|
|
|
|
width: 14px;
|
|
|
|
|
|
height: 14px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-secondary {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
height: 38px;
|
|
|
|
|
|
background: var(--surface2);
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
transition: background 0.15s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-secondary:hover {
|
|
|
|
|
|
background: var(--border);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-secondary i {
|
|
|
|
|
|
width: 14px;
|
|
|
|
|
|
height: 14px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Toast */
|
|
|
|
|
|
.toast {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
position: fixed;
|
|
|
|
|
|
bottom: 24px;
|
|
|
|
|
|
left: 50%;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
transform: translateX(-50%) translateY(16px);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
background: var(--surface2);
|
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: var(--text);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
|
|
|
|
z-index: 200;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toast.show {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
transform: translateX(-50%) translateY(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.toast i {
|
|
|
|
|
|
width: 14px;
|
|
|
|
|
|
height: 14px;
|
|
|
|
|
|
color: var(--accent);
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Loading */
|
2026-03-16 08:23:01 +00:00
|
|
|
|
.loading-state {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
padding: 48px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
.spinner {
|
2026-03-16 08:23:01 +00:00
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
border: 2px solid var(--border);
|
|
|
|
|
|
border-top-color: var(--accent);
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
animation: spin 0.8s linear infinite;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: rotate(360deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
|
width: 4px;
|
2026-03-03 14:56:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
|
background: var(--border);
|
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Header -->
|
|
|
|
|
|
<header class="header">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<div class="header-logo">
|
|
|
|
|
|
<div class="header-dot"></div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<span class="header-title">Posimai Tech</span>
|
|
|
|
|
|
<span class="header-meta" id="headerDate"></span>
|
|
|
|
|
|
</div>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="header-actions">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<button class="icon-btn" id="filterBtn" title="絞り込み">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<i data-lucide="sliders-horizontal" style="width:16px;height:16px;"></i>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
</button>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<button class="icon-btn" id="refreshBtn" title="更新">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<i data-lucide="refresh-cw" style="width:16px;height:16px;"></i>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</button>
|
|
|
|
|
|
<button class="icon-btn" id="themeBtn" title="テーマ切替">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<i data-lucide="sun" style="width:16px;height:16px;"></i>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Filter Tabs -->
|
|
|
|
|
|
<nav class="filter-bar">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<button class="filter-tab active" data-filter="all">すべて</button>
|
|
|
|
|
|
<button class="filter-tab" data-filter="frontend">フロント</button>
|
|
|
|
|
|
<button class="filter-tab" data-filter="backend">バック</button>
|
|
|
|
|
|
<button class="filter-tab" data-filter="design">デザイン</button>
|
|
|
|
|
|
<button class="filter-tab" data-filter="ai">AI</button>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</nav>
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<!-- Active Filter Chips -->
|
|
|
|
|
|
<div class="active-filters hidden" id="activeFilters"></div>
|
|
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<!-- Content -->
|
|
|
|
|
|
<main class="content">
|
|
|
|
|
|
<div class="content-inner" id="eventList">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<div class="loading-state">
|
|
|
|
|
|
<div class="spinner"></div>
|
|
|
|
|
|
</div>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<!-- Shared Backdrop -->
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<div class="sheet-backdrop" id="backdrop"></div>
|
|
|
|
|
|
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<!-- Preference / Filter Sheet -->
|
|
|
|
|
|
<div class="bottom-sheet" id="prefSheet">
|
|
|
|
|
|
<div class="sheet-handle"></div>
|
|
|
|
|
|
<div class="sheet-header">
|
|
|
|
|
|
<span class="sheet-title-text">絞り込み・マイ設定</span>
|
|
|
|
|
|
<button class="icon-btn" id="closePref"><i data-lucide="x"></i></button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="sheet-body">
|
|
|
|
|
|
<!-- Interest Tags -->
|
|
|
|
|
|
<div class="pref-section">
|
|
|
|
|
|
<div class="pref-section-title">
|
|
|
|
|
|
<i data-lucide="heart"></i> 興味・ジャンル
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="pref-tags" id="interestTagsList"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- Audience Tags -->
|
|
|
|
|
|
<div class="pref-section">
|
|
|
|
|
|
<div class="pref-section-title">
|
|
|
|
|
|
<i data-lucide="users"></i> 対象者・シーン
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="pref-tags" id="audienceTagsList"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- Options -->
|
|
|
|
|
|
<div class="pref-section">
|
|
|
|
|
|
<div class="pref-section-title">
|
|
|
|
|
|
<i data-lucide="settings-2"></i> オプション
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="pref-tags" id="optionTagsList"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="pref-footer">
|
|
|
|
|
|
<button class="btn-secondary" id="clearPref">クリア</button>
|
|
|
|
|
|
<button class="btn-primary" id="applyPref">この条件で絞り込む</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<!-- Detail Sheet -->
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<div class="bottom-sheet" id="detailSheet">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<div class="sheet-handle"></div>
|
|
|
|
|
|
<div class="sheet-header">
|
|
|
|
|
|
<div class="sheet-status-row" id="sheetStatusRow"></div>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<button class="icon-btn" id="closeDetail"><i data-lucide="x"></i></button>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="sheet-body">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<h2 class="sheet-title-h2" id="sheetTitle"></h2>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<div id="sheetMeta"></div>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<div class="sheet-interest-tags" id="sheetTags"></div>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<p class="sheet-desc" id="sheetDesc"></p>
|
|
|
|
|
|
</div>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<div class="pref-footer">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<button class="btn-secondary" id="sheetBrainBtn">
|
|
|
|
|
|
<i data-lucide="bookmark"></i> Brainに保存
|
|
|
|
|
|
</button>
|
2026-04-17 09:44:18 +00:00
|
|
|
|
<a class="btn-primary" id="sheetLinkBtn" href="#" target="_blank" rel="noopener noreferrer">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<i data-lucide="external-link"></i> 詳細を見る
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Toast -->
|
|
|
|
|
|
<div class="toast" id="toast">
|
|
|
|
|
|
<i data-lucide="check"></i>
|
|
|
|
|
|
<span id="toastMsg">Brainに保存しました</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<script>
|
|
|
|
|
|
// ---- 定数 ----
|
|
|
|
|
|
const INTEREST_TAGS = [
|
|
|
|
|
|
{ id: 'frontend', label: 'フロントエンド', icon: 'layout' },
|
|
|
|
|
|
{ id: 'backend', label: 'バックエンド', icon: 'server' },
|
|
|
|
|
|
{ id: 'design', label: 'デザイン・UX', icon: 'pen-tool' },
|
|
|
|
|
|
{ id: 'ai', label: 'AI・機械学習', icon: 'bot' },
|
|
|
|
|
|
{ id: 'infra', label: 'インフラ・クラウド', icon: 'cloud' },
|
|
|
|
|
|
{ id: 'mobile', label: 'iOS/Android', icon: 'smartphone' },
|
|
|
|
|
|
{ id: 'data', label: 'データサイエンス', icon: 'database' },
|
|
|
|
|
|
{ id: 'pm', label: 'プロダクトマネジメント', icon: 'briefcase' },
|
|
|
|
|
|
{ id: 'beginner', label: '初心者歓迎', icon: 'smile' }
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const AUDIENCE_TAGS = [
|
|
|
|
|
|
{ id: 'meetup', label: '交流会・ミートアップ', icon: 'users' },
|
|
|
|
|
|
{ id: 'mokumoku', label: 'もくもく会', icon: 'coffee' },
|
|
|
|
|
|
{ id: 'seminar', label: 'セミナー・勉強会', icon: 'book-open' },
|
|
|
|
|
|
{ id: 'handson', label: 'ハンズオン', icon: 'hammer' }
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const OPTION_TAGS = [
|
|
|
|
|
|
{ id: 'free', label: '無料', icon: 'circle-dollar-sign' },
|
|
|
|
|
|
{ id: 'online', label: 'オンライン開催', icon: 'monitor-play' },
|
|
|
|
|
|
{ id: 'offline', label: 'オフライン(会場)開催', icon: 'building' }
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
// ---- モックイベントデータ(interestTags / audienceTags 付き)----
|
|
|
|
|
|
// MOCK_EVENTS removed for Connpass API mapping
|
|
|
|
|
|
|
|
|
|
|
|
// ---- ユーティリティ ----
|
|
|
|
|
|
function today() {
|
|
|
|
|
|
const d = new Date();
|
|
|
|
|
|
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getStatus(ev) {
|
|
|
|
|
|
const t = today();
|
|
|
|
|
|
if (ev.endDate < t) return 'ended';
|
|
|
|
|
|
if (ev.startDate <= t && ev.endDate >= t) return 'active';
|
|
|
|
|
|
const next7 = new Date(); next7.setDate(next7.getDate() + 7);
|
|
|
|
|
|
if (ev.startDate <= next7.toISOString().slice(0, 10)) return 'upcoming';
|
|
|
|
|
|
return 'future';
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function statusLabel(s) { return { active: '開催中', upcoming: '近日開催', future: '予定', ended: '終了' }[s]; }
|
|
|
|
|
|
function statusTagClass(s) { return { active: 'tag-active', upcoming: 'tag-upcoming', future: 'tag-category', ended: 'tag-ended' }[s]; }
|
|
|
|
|
|
|
|
|
|
|
|
function formatDateBadge(dateStr) {
|
|
|
|
|
|
const d = new Date(dateStr + 'T00:00:00');
|
|
|
|
|
|
const days = ['日', '月', '火', '水', '木', '金', '土'];
|
|
|
|
|
|
return { day: d.getDate(), sub: `${d.getMonth() + 1}/${d.getDate()} ${days[d.getDay()]}` };
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function formatDateRange(ev) {
|
|
|
|
|
|
return ev.startDate === ev.endDate
|
|
|
|
|
|
? `${ev.startDate.replace(/-/g, '/')} ${ev.startTime} - ${ev.endTime}`
|
|
|
|
|
|
: `${ev.startDate.replace(/-/g, '/')} ${ev.startTime} 〜 ${ev.endDate.replace(/-/g, '/')} ${ev.endTime}`;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function escapeHTML(s) {
|
|
|
|
|
|
return (s || '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- 設定 ----
|
|
|
|
|
|
let prefs = JSON.parse(localStorage.getItem('events-prefs') || '{"interests":[],"audience":[],"options":[]}');
|
|
|
|
|
|
let pendingPrefs = null;
|
|
|
|
|
|
|
|
|
|
|
|
function matchesPrefs(ev, p) {
|
|
|
|
|
|
if (!p) return true;
|
|
|
|
|
|
const hasInterest = p.interests.length === 0 || p.interests.some(id => (ev.interestTags || []).includes(id));
|
|
|
|
|
|
const hasAudience = p.audience.length === 0 || p.audience.some(id => (ev.audienceTags || []).includes(id));
|
|
|
|
|
|
let hasOption = true;
|
|
|
|
|
|
if (p.options.includes('free') && !ev.isFree) hasOption = false;
|
|
|
|
|
|
if (p.options.includes('no-rsvp') && !ev.noRsvp) hasOption = false;
|
|
|
|
|
|
if (p.options.includes('outdoor') && !ev.isOutdoor) hasOption = false;
|
|
|
|
|
|
if (p.options.includes('indoor') && ev.isOutdoor) hasOption = false;
|
|
|
|
|
|
return hasInterest && hasAudience && hasOption;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function hasActiveFilters(p) {
|
|
|
|
|
|
return p.interests.length > 0 || p.audience.length > 0 || p.options.length > 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- State ----
|
|
|
|
|
|
let currentFilter = 'all'; // all, frontend, backend, design, ai
|
|
|
|
|
|
let allEvents = [];
|
|
|
|
|
|
let savedIds = new Set(JSON.parse(localStorage.getItem('events-saved') || '[]'));
|
|
|
|
|
|
|
|
|
|
|
|
function groupEvents(events) {
|
|
|
|
|
|
const g = {
|
|
|
|
|
|
active: { label: '開催中', events: [] }, upcoming: { label: '今週・近日', events: [] },
|
|
|
|
|
|
future: { label: '来月以降', events: [] }, ended: { label: '終了', events: [] }
|
|
|
|
|
|
};
|
|
|
|
|
|
for (const ev of events) g[getStatus(ev)].events.push(ev);
|
|
|
|
|
|
for (const s of Object.values(g)) s.events.sort((a, b) => (a.startDate + a.startTime).localeCompare(b.startDate + b.startTime));
|
|
|
|
|
|
return g;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Render ----
|
|
|
|
|
|
function renderInterestChips(ev) {
|
|
|
|
|
|
const tags = [...(ev.interestTags || []), ...(ev.audienceTags || [])].slice(0, 2);
|
|
|
|
|
|
if (!tags.length) return '';
|
|
|
|
|
|
const iDef = INTEREST_TAGS.concat(AUDIENCE_TAGS);
|
|
|
|
|
|
return tags.map(id => {
|
|
|
|
|
|
const def = iDef.find(x => x.id === id);
|
|
|
|
|
|
return def ? `<span class="tag tag-interest">${escapeHTML(def.label)}</span>` : '';
|
|
|
|
|
|
}).join('');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function renderCard(ev) {
|
|
|
|
|
|
const status = getStatus(ev);
|
|
|
|
|
|
const badge = formatDateBadge(ev.startDate);
|
|
|
|
|
|
const saved = savedIds.has(ev.id);
|
|
|
|
|
|
return `
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<div class="event-card" data-status="${status}" data-id="${ev.id}" onclick="openDetail('${ev.id}')">
|
|
|
|
|
|
<div class="date-badge">
|
|
|
|
|
|
<span class="date-badge-day">${badge.day}</span>
|
|
|
|
|
|
<span class="date-badge-sub">${badge.sub}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="event-body">
|
|
|
|
|
|
<div class="event-tags">
|
|
|
|
|
|
<span class="tag ${statusTagClass(status)}">${statusLabel(status)}</span>
|
|
|
|
|
|
<span class="tag tag-category">${escapeHTML(ev.category)}</span>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
${renderInterestChips(ev)}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="event-title">${escapeHTML(ev.title)}</div>
|
|
|
|
|
|
<div class="event-location">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<i data-lucide="map-pin"></i><span>${escapeHTML(ev.location)}</span>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="event-time">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<i data-lucide="clock"></i><span>${formatDateRange(ev)}</span>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="event-actions" onclick="event.stopPropagation()">
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<button class="action-btn ${saved ? 'saved' : ''}" title="Brainに保存" onclick="saveToBrain('${ev.id}',event)">
|
|
|
|
|
|
<i data-lucide="${saved ? 'bookmark-check' : 'bookmark'}"></i>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</button>
|
2026-04-17 09:44:18 +00:00
|
|
|
|
<a class="action-btn" href="${escapeHTML(ev.url)}" target="_blank" rel="noopener noreferrer" title="詳細を見る">
|
2026-03-03 14:56:12 +00:00
|
|
|
|
<i data-lucide="external-link"></i>
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
</div>`;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
}
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
function renderTimeline() {
|
|
|
|
|
|
// 取得したイベントに対してクライアントサイドの設定(Prefs)絞り込みをかける
|
|
|
|
|
|
const filtered = allEvents.filter(ev => matchesPrefs(ev, prefs));
|
|
|
|
|
|
const list = document.getElementById('eventList');
|
2026-03-03 15:26:21 +00:00
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
// アクティブフィルターチップ
|
|
|
|
|
|
renderActiveChips();
|
2026-03-03 14:56:12 +00:00
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
if (filtered.length === 0) {
|
|
|
|
|
|
list.innerHTML = `<div class="empty-state">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<i data-lucide="calendar-x"></i>
|
|
|
|
|
|
<p>この条件のイベントは見つかりません。<br>絞り込みを変更してみてください。</p>
|
|
|
|
|
|
</div>`;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
lucide.createIcons(); return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Roleベースタブではすべてを時系列で並べる、もしくは月ごとにグループ化する
|
|
|
|
|
|
// 今回はシンプルに日付順リスト表示
|
|
|
|
|
|
list.innerHTML = [...filtered]
|
|
|
|
|
|
.sort((a, b) => (a.startDate + a.startTime).localeCompare(b.startDate + b.startTime))
|
|
|
|
|
|
.map(renderCard).join('');
|
|
|
|
|
|
|
|
|
|
|
|
lucide.createIcons();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function renderActiveChips() {
|
|
|
|
|
|
const container = document.getElementById('activeFilters');
|
|
|
|
|
|
const btn = document.getElementById('filterBtn');
|
|
|
|
|
|
if (!hasActiveFilters(prefs)) {
|
|
|
|
|
|
container.classList.add('hidden');
|
|
|
|
|
|
btn.classList.remove('has-filter');
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
container.classList.remove('hidden');
|
|
|
|
|
|
btn.classList.add('has-filter');
|
|
|
|
|
|
const allDefs = INTEREST_TAGS.concat(AUDIENCE_TAGS).concat(OPTION_TAGS);
|
|
|
|
|
|
const allSelected = [...prefs.interests, ...prefs.audience, ...prefs.options];
|
|
|
|
|
|
container.innerHTML = allSelected.map(id => {
|
|
|
|
|
|
const def = allDefs.find(x => x.id === id);
|
|
|
|
|
|
return def ? `<span class="chip" onclick="removeFilter('${id}')">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
${escapeHTML(def.label)}<i data-lucide="x"></i></span>` : '';
|
2026-03-16 08:23:01 +00:00
|
|
|
|
}).join('');
|
|
|
|
|
|
lucide.createIcons();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
window.removeFilter = function (id) {
|
|
|
|
|
|
prefs.interests = prefs.interests.filter(x => x !== id);
|
|
|
|
|
|
prefs.audience = prefs.audience.filter(x => x !== id);
|
|
|
|
|
|
prefs.options = prefs.options.filter(x => x !== id);
|
|
|
|
|
|
localStorage.setItem('events-prefs', JSON.stringify(prefs));
|
|
|
|
|
|
renderTimeline();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2026-03-16 09:08:55 +00:00
|
|
|
|
// ---- タブフィルター キーワード ----
|
|
|
|
|
|
const TAB_KEYWORDS = {
|
|
|
|
|
|
frontend: ['フロントエンド', 'React', 'Vue', 'TypeScript', 'Next.js', 'Svelte'],
|
|
|
|
|
|
backend: ['バックエンド', 'Go', 'Rust', 'Ruby', 'Python', 'PHP', 'API'],
|
|
|
|
|
|
design: ['デザイン', 'UX', 'UI', 'Figma'],
|
|
|
|
|
|
ai: ['AI', '機械学習', 'LLM', 'GPT', 'Claude', 'Gemini'],
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function matchesTab(ev, tab) {
|
|
|
|
|
|
if (tab === 'all') return true;
|
|
|
|
|
|
const kws = TAB_KEYWORDS[tab] || [];
|
|
|
|
|
|
const haystack = (ev.title + ' ' + ev.description + ' ' + (ev.interestTags || []).join(' ')).toLowerCase();
|
|
|
|
|
|
return kws.some(kw => haystack.includes(kw.toLowerCase()));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- データ読み込み (RSS経由) ----
|
2026-03-26 14:05:47 +00:00
|
|
|
|
const API_BASE = 'https://api.soar-enrich.com/brain/api';
|
2026-03-16 09:08:55 +00:00
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
async function loadEvents(tabFilter = 'all') {
|
2026-03-16 09:08:55 +00:00
|
|
|
|
currentFilter = tabFilter;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
document.getElementById('eventList').innerHTML =
|
|
|
|
|
|
'<div class="loading-state"><div class="spinner"></div></div>';
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
2026-03-16 09:08:55 +00:00
|
|
|
|
// RSSプロキシ経由(Doorkeeper + connpass)
|
|
|
|
|
|
const response = await fetch(API_BASE + '/events/rss', {
|
|
|
|
|
|
signal: AbortSignal.timeout(10000),
|
|
|
|
|
|
});
|
|
|
|
|
|
if (!response.ok) throw new Error('RSS fetch failed: ' + response.status);
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
const data = await response.json();
|
2026-03-16 09:08:55 +00:00
|
|
|
|
allEvents = (data.events || []).filter(ev => matchesTab(ev, tabFilter));
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
2026-03-16 09:08:55 +00:00
|
|
|
|
localStorage.setItem('events-cache', JSON.stringify(data.events || []));
|
2026-03-16 08:23:01 +00:00
|
|
|
|
renderTimeline();
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
2026-03-16 09:08:55 +00:00
|
|
|
|
console.error('[Events] Load error:', e);
|
|
|
|
|
|
// フォールバック: キャッシュから全件取得してクライアントフィルタ
|
|
|
|
|
|
const cached = localStorage.getItem('events-cache');
|
|
|
|
|
|
const all = cached ? JSON.parse(cached) : [];
|
|
|
|
|
|
allEvents = all.filter(ev => matchesTab(ev, tabFilter));
|
2026-03-16 08:23:01 +00:00
|
|
|
|
renderTimeline();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Brain 保存 ----
|
|
|
|
|
|
function saveToBrain(id, e) {
|
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
|
const ev = allEvents.find(x => x.id === id);
|
|
|
|
|
|
if (!ev) return;
|
|
|
|
|
|
savedIds.add(id);
|
|
|
|
|
|
localStorage.setItem('events-saved', JSON.stringify([...savedIds]));
|
2026-03-20 05:09:24 +00:00
|
|
|
|
window.open(`https://posimai-brain.vercel.app/?url=${encodeURIComponent(ev.url)}&title=${encodeURIComponent(ev.title)}`, '_blank', 'noopener,noreferrer');
|
2026-03-16 08:23:01 +00:00
|
|
|
|
showToast('Brainに保存しました');
|
|
|
|
|
|
renderTimeline();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Detail Sheet ----
|
|
|
|
|
|
window.openDetail = function (id) {
|
|
|
|
|
|
const ev = allEvents.find(x => x.id === id);
|
|
|
|
|
|
if (!ev) return;
|
|
|
|
|
|
const status = getStatus(ev);
|
|
|
|
|
|
const saved = savedIds.has(id);
|
|
|
|
|
|
const allDefs = INTEREST_TAGS.concat(AUDIENCE_TAGS);
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('sheetStatusRow').innerHTML =
|
|
|
|
|
|
`<span class="tag ${statusTagClass(status)}">${statusLabel(status)}</span>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<span class="tag tag-category">${escapeHTML(ev.category)}</span>`;
|
2026-03-16 08:23:01 +00:00
|
|
|
|
document.getElementById('sheetTitle').textContent = ev.title;
|
|
|
|
|
|
document.getElementById('sheetMeta').innerHTML = `
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<div class="sheet-meta-row"><i data-lucide="calendar"></i><span>${formatDateRange(ev)}</span></div>
|
|
|
|
|
|
<div class="sheet-meta-row"><i data-lucide="map-pin"></i>
|
2026-03-16 08:23:01 +00:00
|
|
|
|
<span><a href="https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(ev.location + ' ' + ev.address)}"
|
2026-04-17 09:44:18 +00:00
|
|
|
|
target="_blank" rel="noopener noreferrer" style="color:var(--accent);text-decoration:none;">${escapeHTML(ev.location)}</a></span>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</div>
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<div class="sheet-meta-row"><i data-lucide="info"></i>
|
|
|
|
|
|
<span style="color:var(--text3);font-size:12px;">情報元: ${escapeHTML(ev.source)}</span></div>`;
|
|
|
|
|
|
|
2026-03-16 08:23:01 +00:00
|
|
|
|
const tags = [...(ev.interestTags || []), ...(ev.audienceTags || [])];
|
|
|
|
|
|
document.getElementById('sheetTags').innerHTML = tags.map(tid => {
|
|
|
|
|
|
const def = allDefs.find(x => x.id === tid);
|
|
|
|
|
|
const isAudience = AUDIENCE_TAGS.some(x => x.id === tid);
|
|
|
|
|
|
return def ? `<span class="tag ${isAudience ? 'tag-audience' : 'tag-interest'}">${escapeHTML(def.label)}</span>` : '';
|
|
|
|
|
|
}).join('');
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('sheetDesc').textContent = ev.description;
|
|
|
|
|
|
document.getElementById('sheetLinkBtn').href = ev.url;
|
|
|
|
|
|
|
|
|
|
|
|
const brainBtn = document.getElementById('sheetBrainBtn');
|
|
|
|
|
|
brainBtn.innerHTML = saved
|
|
|
|
|
|
? '<i data-lucide="bookmark-check"></i> 保存済み'
|
|
|
|
|
|
: '<i data-lucide="bookmark"></i> Brainに保存';
|
|
|
|
|
|
brainBtn.style.color = saved ? 'var(--accent)' : '';
|
|
|
|
|
|
brainBtn.onclick = () => {
|
|
|
|
|
|
savedIds.add(id);
|
|
|
|
|
|
localStorage.setItem('events-saved', JSON.stringify([...savedIds]));
|
2026-03-20 05:09:24 +00:00
|
|
|
|
window.open(`https://posimai-brain.vercel.app/?url=${encodeURIComponent(ev.url)}&title=${encodeURIComponent(ev.title)}`, '_blank', 'noopener,noreferrer');
|
2026-03-16 08:23:01 +00:00
|
|
|
|
showToast('Brainに保存しました');
|
|
|
|
|
|
brainBtn.innerHTML = '<i data-lucide="bookmark-check"></i> 保存済み';
|
|
|
|
|
|
brainBtn.style.color = 'var(--accent)';
|
|
|
|
|
|
lucide.createIcons(); renderTimeline();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
openSheet('detailSheet');
|
|
|
|
|
|
lucide.createIcons();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Preference Sheet ----
|
|
|
|
|
|
function buildPrefTags(container, defs, selectedArr, colorClass) {
|
|
|
|
|
|
container.innerHTML = defs.map(def => `
|
|
|
|
|
|
<span class="pref-tag ${selectedArr.includes(def.id) ? 'selected' : ''}" data-id="${def.id}">
|
2026-03-03 15:26:21 +00:00
|
|
|
|
<i data-lucide="${def.icon}"></i>${escapeHTML(def.label)}
|
|
|
|
|
|
</span>`).join('');
|
2026-03-16 08:23:01 +00:00
|
|
|
|
container.querySelectorAll('.pref-tag').forEach(el => {
|
|
|
|
|
|
el.addEventListener('click', () => el.classList.toggle('selected'));
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function openPrefSheet() {
|
|
|
|
|
|
pendingPrefs = JSON.parse(JSON.stringify(prefs));
|
|
|
|
|
|
buildPrefTags(document.getElementById('interestTagsList'), INTEREST_TAGS, prefs.interests, 'interest');
|
|
|
|
|
|
buildPrefTags(document.getElementById('audienceTagsList'), AUDIENCE_TAGS, prefs.audience, 'audience');
|
|
|
|
|
|
buildPrefTags(document.getElementById('optionTagsList'), OPTION_TAGS, prefs.options, 'option');
|
|
|
|
|
|
openSheet('prefSheet');
|
|
|
|
|
|
lucide.createIcons();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('applyPref').addEventListener('click', () => {
|
|
|
|
|
|
prefs.interests = [...document.querySelectorAll('#interestTagsList .pref-tag.selected')].map(el => el.dataset.id);
|
|
|
|
|
|
prefs.audience = [...document.querySelectorAll('#audienceTagsList .pref-tag.selected')].map(el => el.dataset.id);
|
|
|
|
|
|
prefs.options = [...document.querySelectorAll('#optionTagsList .pref-tag.selected')].map(el => el.dataset.id);
|
|
|
|
|
|
localStorage.setItem('events-prefs', JSON.stringify(prefs));
|
|
|
|
|
|
closeSheet('prefSheet');
|
|
|
|
|
|
renderTimeline();
|
|
|
|
|
|
if (hasActiveFilters(prefs)) showToast('絞り込みを適用しました');
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('clearPref').addEventListener('click', () => {
|
|
|
|
|
|
document.querySelectorAll('#prefSheet .pref-tag.selected').forEach(el => el.classList.remove('selected'));
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Sheet Open/Close ----
|
|
|
|
|
|
function openSheet(id) {
|
|
|
|
|
|
document.getElementById(id).classList.add('open');
|
|
|
|
|
|
document.getElementById('backdrop').classList.add('open');
|
|
|
|
|
|
}
|
|
|
|
|
|
function closeSheet(id) {
|
|
|
|
|
|
document.getElementById(id).classList.remove('open');
|
|
|
|
|
|
if (!document.querySelector('.bottom-sheet.open')) {
|
|
|
|
|
|
document.getElementById('backdrop').classList.remove('open');
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('closeDetail').addEventListener('click', () => closeSheet('detailSheet'));
|
|
|
|
|
|
document.getElementById('closePref').addEventListener('click', () => closeSheet('prefSheet'));
|
|
|
|
|
|
document.getElementById('backdrop').addEventListener('click', () => {
|
|
|
|
|
|
closeSheet('detailSheet'); closeSheet('prefSheet');
|
|
|
|
|
|
document.getElementById('backdrop').classList.remove('open');
|
|
|
|
|
|
});
|
|
|
|
|
|
document.getElementById('filterBtn').addEventListener('click', openPrefSheet);
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Filter Tabs ----
|
|
|
|
|
|
document.querySelectorAll('.filter-tab').forEach(btn => {
|
|
|
|
|
|
btn.addEventListener('click', () => {
|
|
|
|
|
|
if (currentFilter === btn.dataset.filter) return;
|
|
|
|
|
|
document.querySelectorAll('.filter-tab').forEach(b => b.classList.remove('active'));
|
|
|
|
|
|
btn.classList.add('active');
|
|
|
|
|
|
currentFilter = btn.dataset.filter;
|
|
|
|
|
|
loadEvents(currentFilter); // タブ切り替え時にAPIを再コールする
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Toast ----
|
|
|
|
|
|
let toastTimer = null;
|
|
|
|
|
|
function showToast(msg) {
|
|
|
|
|
|
const t = document.getElementById('toast');
|
|
|
|
|
|
document.getElementById('toastMsg').textContent = msg;
|
|
|
|
|
|
t.classList.add('show');
|
|
|
|
|
|
if (toastTimer) clearTimeout(toastTimer);
|
|
|
|
|
|
toastTimer = setTimeout(() => t.classList.remove('show'), 2500);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- テーマ ----
|
|
|
|
|
|
function applyTheme(theme) {
|
|
|
|
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
|
|
|
|
const icon = document.querySelector('#themeBtn i');
|
|
|
|
|
|
if (icon) { icon.setAttribute('data-lucide', theme === 'light' ? 'moon' : 'sun'); lucide.createIcons(); }
|
|
|
|
|
|
}
|
|
|
|
|
|
document.getElementById('themeBtn').addEventListener('click', () => {
|
|
|
|
|
|
const next = (document.documentElement.getAttribute('data-theme') || 'dark') === 'dark' ? 'light' : 'dark';
|
|
|
|
|
|
localStorage.setItem('events-theme', next); applyTheme(next);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Refresh ----
|
|
|
|
|
|
document.getElementById('refreshBtn').addEventListener('click', () => {
|
|
|
|
|
|
const icon = document.querySelector('#refreshBtn i');
|
|
|
|
|
|
icon.style.transition = 'transform 0.5s'; icon.style.transform = 'rotate(360deg)';
|
|
|
|
|
|
setTimeout(() => { icon.style.transform = ''; }, 500);
|
|
|
|
|
|
loadEvents(currentFilter).then(() => showToast('最新情報に更新しました'));
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Header Date ----
|
|
|
|
|
|
function updateHeaderDate() {
|
|
|
|
|
|
const d = new Date();
|
|
|
|
|
|
const days = ['日', '月', '火', '水', '木', '金', '土'];
|
|
|
|
|
|
document.getElementById('headerDate').textContent =
|
|
|
|
|
|
`${d.getMonth() + 1}/${d.getDate()}(${days[d.getDay()]})`;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- PWA Service Worker ----
|
|
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
|
|
// Unregister old SWs to ensure fresh code
|
|
|
|
|
|
navigator.serviceWorker.getRegistrations().then(registrations => {
|
|
|
|
|
|
const unregisterPromises = registrations.map(reg => reg.unregister());
|
|
|
|
|
|
return Promise.all(unregisterPromises);
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
// Register fresh SW with cachebuster
|
|
|
|
|
|
return navigator.serviceWorker.register('/sw.js?v=3');
|
|
|
|
|
|
}).then(reg => {
|
|
|
|
|
|
if (reg.waiting) {
|
|
|
|
|
|
reg.waiting.postMessage({ type: 'SKIP_WAITING' });
|
|
|
|
|
|
}
|
|
|
|
|
|
}).catch(() => { });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---- Init ----
|
|
|
|
|
|
applyTheme(localStorage.getItem('events-theme') || 'dark');
|
|
|
|
|
|
updateHeaderDate();
|
|
|
|
|
|
lucide.createIcons();
|
|
|
|
|
|
loadEvents(currentFilter);
|
|
|
|
|
|
</script>
|
2026-03-03 14:56:12 +00:00
|
|
|
|
</body>
|
2026-03-16 08:23:01 +00:00
|
|
|
|
|
|
|
|
|
|
</html>
|