body { background-color: #eaddcf; font-family: sans-serif; margin: 0; }
#menu-screen { display: flex; flex-direction: column; align-items: center; padding: 20px; }
#archive-screen { display: none; flex-direction: column; height: 100vh; background-color: #fff; }
.header { background: linear-gradient(to right, #8ba9eb, #b89ced); color: white; padding: 10px; display: flex; align-items: center; justify-content: space-between; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; overflow-y: auto; }
.archive-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; }
.archive-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-info { padding: 8px; font-size: 11px; font-weight: bold; }
.menu-button { width: 90%; max-width: 350px; height: 100px; border-radius: 12px; margin-bottom: 20px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding-right: 20px; color: white; text-decoration: none; }
.btn-connect { background: linear-gradient(135deg, #9ae0aa, #6fc88b); }

/* フィルターボタンとモーダルのスタイル */
.btn-filter-open { border-radius: 20px; border: 1px solid #8ba9eb; padding: 5px 20px; background: white; color: #8ba9eb; font-weight: bold; cursor: pointer; }
#filter-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; z-index: 100; }
.modal-content { background: white; padding: 20px; border-radius: 12px; width: 85%; max-width: 350px; }
.filter-section { margin-bottom: 15px; font-size: 14px; }
.modal-buttons { display: flex; justify-content: space-between; margin-top: 20px; }
.modal-buttons button { padding: 8px 15px; border-radius: 8px; border: none; cursor: pointer; }
.btn-cancel { background: #eee; }
.btn-submit { background: #8ba9eb; color: white; font-weight: bold; }
/* 動画再生モーダル */
#video-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; z-index: 200; }
.video-wrapper { width: 95%; max-width: 800px; display: flex; flex-direction: column; align-items: flex-end; }
.video-wrapper iframe { width: 100%; aspect-ratio: 16/9; }
.close-video { color: white; margin-bottom: 10px; cursor: pointer; font-weight: bold; font-size: 16px; }
