/* ページ全体の余白（このファイル専用） */
.em-event-details-container {
    margin: 20px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .em-event-details-container {
        margin: 16px;
        width: calc(100% - 32px);
    }
}

/* PC表示時の中央寄せ */
@media (min-width: 768px) {
    .em-event-details-container {
        max-width: 800px;
        margin: 20px auto;
        padding: 0 20px;
    }
}

/* アイコンのサイズ指定 */
.em-success-icon svg,
.em-success-icon img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
}

.em-edit-icon svg,
.em-edit-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.em-comment-icon svg,
.em-comment-icon img,
.em-view-icon svg,
.em-view-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.em-calendar-icon svg,
.em-calendar-icon img {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.em-venue-icon svg,
.em-venue-icon img {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.em-copy-icon svg,
.em-copy-icon img {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.em-status-icon svg,
.em-status-icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

.em-cancelled-icon svg,
.em-cancelled-icon img,
.em-pending-icon svg,
.em-pending-icon img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
}

/* シェアアイコンのスタイル */
.em-share-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.em-share-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.em-share-icon svg,
.em-share-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* シェアメニューのスタイル */
.em-share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.em-share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.em-share-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.em-share-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 14px;
}

.em-share-menu-item:hover {
    background-color: #f5f5f5;
}

.em-share-menu-item:active {
    background-color: #e8e8e8;
}

.em-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.em-menu-icon svg,
.em-menu-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ヘッダー内の配置 */
.em-share-close {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.em-edit-icon {
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.em-edit-icon:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .em-share-menu {
        right: -10px;
        min-width: 200px;
    }
}

/* 予約完了モーダルのスタイル */
.em-booking-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.em-booking-success-modal {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.em-success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.em-success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.em-success-header h2 {
    color: #2ecc71;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.em-success-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    text-align: center;
    font-weight: 600;
}

.em-success-content > p {
    text-align: center;
    color: #34495e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.em-success-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.em-success-detail {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.em-success-detail:last-child {
    margin-bottom: 0;
}

.em-success-detail strong {
    color: #2c3e50;
    display: inline-block;
    width: 80px;
}

.em-success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.em-success-close-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.em-success-close-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.em-success-events-btn {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.em-success-events-btn:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .em-booking-success-modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .em-success-header h2 {
        font-size: 1.5rem;
    }
    
    .em-success-content h3 {
        font-size: 1.1rem;
    }
}

/* キャンセル済み最終状態のスタイル */
.em-booking-user-cancelled-final {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.em-cancelled-message {
    margin-bottom: 2rem;
}

.em-cancelled-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.em-cancelled-message h4 {
    color: #6c757d;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.em-cancelled-message p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.em-contact-support {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.em-support-info p {
    margin: 0 0 0.75rem 0;
    color: #495057;
}

.em-support-info strong {
    color: #343a40;
}

.em-support-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.em-support-info li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.em-support-info a {
    color: #007bff;
    text-decoration: none;
}

.em-support-info a:hover {
    text-decoration: underline;
}

.em-support-info small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* ヘッダーのスタイル */
.em-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* 主催グループヘッダーのスタイル */
.em-organizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.em-organizer-header h2 {
    margin: 0;
}

.em-edit-button {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.em-edit-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
}

/* 準備中メッセージのスタイル */
.em-prep-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(52, 73, 94, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
    display: none;
    backdrop-filter: blur(5px);
}

/* ボタンクリック時のスタイル */
.em-button-clicked {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* コメントボタンと閲覧数ボタンのホバー効果 */
.em-comment-action, .em-view-action {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.em-comment-action:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* イベント画像のスタイル */
.em-event-image img {
    border-radius: 10px;
}

/* アクション全体のレスポンシブ対応 */
.em-event-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 1rem;
}

.em-event-actions > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
}

/* 日時セクション */
.em-event-datetime {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 1rem;
}

.em-date-time-details {
    flex: 1;
}

/* 場所セクション */
.em-event-venue {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 1rem;
}

.em-venue-details {
    flex: 1;
}

.em-venue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.em-copy-address-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.em-copy-address-btn:hover {
    background-color: #2980b9;
}

.em-copy-address-btn.em-copy-success {
    background-color: #2ecc71;
}

/* キャンセルポリシーのスタイル */
.em-cancellation-policy {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.em-policy-title, .em-status-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    padding-left: 1.5rem;
}

.em-policy-title:before, .em-status-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #3498db;
    border-radius: 50%;
}

.em-policy-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.em-policy-content li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.em-policy-content li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.em-policy-highlight {
    font-weight: 600;
    color: #2c3e50;
}

.em-policy-intro, .em-policy-thanks {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.em-policy-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0.5rem 0;
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
}

/* 参加者ステータス表示のスタイル */
.em-community-status {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.em-status-section h4 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.em-status-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.em-status-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    text-align: center;
}

.em-status-name {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.em-status-message {
    font-size: 0.9rem;
    color: #34495e;
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* コミュニティ責任への同意セクション */
.em-user-event-role-notice {
    margin: 0 0 1rem;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f8fbff;
}

.em-user-event-role-notice--manager {
    --oe-role-grad-start: #90caf9;
    --oe-role-grad-end: #a5d6a7;
    border-color: #90caf9;
    background: linear-gradient(135deg, #90caf9, #a5d6a7);
}

.em-user-event-role-notice--participant {
    --oe-role-grad-start: #ff8a80;
    --oe-role-grad-end: #ffcc02;
    border-color: #ff8a80;
    background: linear-gradient(135deg, #ff8a80, #ffcc02);
}

.em-user-event-role-message {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.em-user-event-role-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.em-user-event-role-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    overflow: hidden;
}

.em-user-event-role-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.32);
    z-index: -1;
    transition: background-color 0.2s ease;
}

.em-user-event-role-link:hover::before {
    background: rgba(255, 255, 255, 0.48);
}

.em-user-event-role-link:hover {
    text-decoration: none;
}

.em-section-anchor {
    display: block;
    height: 0;
}

#em-event-participant-management-section,
#em-event-manager-qr-section,
#em-event-my-checkin-qr-section,
#oeam-manager,
#oeam-qr-scan-section,
#oeam-qr-display,
#em-event-album-section {
    scroll-margin-top: 96px;
}

.em-community-responsibility {
    background-color: #f8f9fa;
    border-left: 3px solid #f39c12;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #34495e;
}

.em-community-responsibility strong {
    color: #f39c12;
}

/* 主催グループと主催者の表示スタイル */
.em-organizer-card {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 0;
}

.em-organizer-left {
    display: flex;
    align-items: center;
}

.em-organizer-right {
    display: flex;
    align-items: center;
}

.em-organizer-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.em-organizer-avatar {
    margin-right: 0.75rem;
}

.em-organizer-avatar img {
    border-radius: 5px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.em-organizer-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.em-owner-label {
    color: #666;
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.em-owner-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.em-owner-avatar {
    margin-right: 0.5rem;
}

.em-owner-avatar img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.em-owner-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

/* 申し込みボタンのスタイル変更 */
.em-booking-submit {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.em-booking-submit:hover {
    background-color: #27ae60;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.em-booking-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* 予約済みとログイン要求のスタイル追加 */
.em-booking-already-booked {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.em-booking-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.em-booking-success-icon {
    background-color: #2ecc71;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.em-cancel-instructions {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.em-cancel-instructions strong {
    color: #f39c12;
}

.em-booking-cancel-button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em-booking-cancel-button:hover {
    background-color: #d68910;
}

/* 承認待ちスタイル */
.em-booking-pending {
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.em-pending-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.em-booking-pending h4 {
    color: #856404;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.em-booking-pending p {
    color: #856404;
    margin: 0;
}

/* ログイン要求スタイル */
.em-booking-login-required {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.em-login-message {
    margin-bottom: 1.5rem;
}

.em-login-message p {
    margin-bottom: 0.5rem;
}

.em-login-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.em-login-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.em-login-button:hover {
    background-color: #2980b9;
}

.em-register-link {
    font-size: 0.9rem;
    color: #555;
}

.em-register-link a {
    color: #3498db;
    text-decoration: none;
}

.em-register-link a:hover {
    text-decoration: underline;
}

/* イベント状態メッセージのスタイル */
.em-event-status-message {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.em-event-status-message .em-status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.em-event-status-message h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.em-event-status-message p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* キャンセル済み */
.em-event-cancelled {
    background-color: #fdf2f2;
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.em-event-cancelled h3 {
    color: #dc2626;
}

/* イベント終了 */
.em-event-finished {
    background-color: #f0f9ff;
    border: 2px solid #93c5fd;
    color: #1e40af;
}

.em-event-finished h3 {
    color: #2563eb;
}

/* 開催中 */
.em-event-ongoing {
    background-color: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
}

.em-event-ongoing h3 {
    color: #16a34a;
}

/* 募集期間終了 */
.em-event-rsvp-closed {
    background-color: #fffbeb;
    border: 2px solid #fcd34d;
    color: #92400e;
}

.em-event-rsvp-closed h3 {
    color: #d97706;
}

/* 編集準備中メッセージのスタイル */
.em-edit-unavailable {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dee2e6;
}

/* フロントエンド編集設定案内のスタイル */
.em-edit-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.em-edit-notice ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.em-edit-notice li {
    margin-bottom: 0.5rem;
}

.em-edit-notice-full {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    max-width: 600px;
}

.em-edit-notice-full h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.em-setup-steps {
    margin: 1.5rem 0;
}

.em-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.em-step-number {
    background-color: #3498db;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.em-step-content {
    flex: 1;
}

.em-step-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.em-step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.em-step-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #e74c3c;
}

.em-notice-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px dashed #dee2e6;
}

/* イベント説明の続きを読む機能 */
.em-event-notes {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.em-event-notes.expanded {
    max-height: none;
    overflow: visible;
}

.em-event-notes:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.em-read-more {
    text-align: center;
    margin-top: 1rem;
}

#em-read-more-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#em-read-more-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* お気に入りメンバー モーダル */
.em-favorite-members-trigger {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #4477e9;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.em-favorite-members-trigger:hover {
    color: #1d4ed8;
}

.em-favorite-members-trigger:focus-visible {
    outline: 2px solid #4477e9;
    outline-offset: 2px;
    border-radius: 3px;
}

.em-favorite-members-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    background: rgba(15, 23, 42, 0.52);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.em-favorite-members-modal.is-open {
    display: flex;
}

.em-favorite-members-dialog {
    width: min(760px, 100%);
    max-height: min(82vh, 760px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.em-favorite-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.em-favorite-members-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #111827;
}

.em-favorite-members-close {
    appearance: none;
    background: #f3f4f6;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    color: #374151;
    cursor: pointer;
}

.em-favorite-members-close:hover {
    background: #e5e7eb;
}

.em-favorite-members-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
}

.em-favorite-members-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 760px;
    display: grid;
    gap: 12px;
}

.em-favorite-member-item {
    margin: 0;
}

.em-favorite-member-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.em-favorite-member-link:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.em-favorite-member-avatar img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
}

.em-favorite-member-name {
    font-size: 1rem;
    font-weight: 600;
}

.em-favorite-members-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    background: #f9fafb;
    color: #4b5563;
}

body.em-favorite-members-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .em-favorite-members-modal {
        padding: 12px;
    }

    .em-favorite-members-dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 14px;
    }

    .em-favorite-members-header {
        padding: 16px;
    }

    .em-favorite-members-header h3 {
        font-size: 1.05rem;
    }

    .em-favorite-members-body {
        padding: 12px 16px 16px;
    }

    .em-favorite-member-link {
        gap: 12px;
        padding: 10px 12px;
    }

    .em-favorite-member-avatar img {
        width: 48px;
        height: 48px;
    }

    .em-favorite-member-name {
        font-size: 0.95rem;
    }
}

/* 参加枠選択（複数チケット時のラジオボタン） */
.em-ticket-selectable {
    display: block;
    cursor: pointer;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.em-ticket-selectable:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.em-ticket-selectable.em-ticket-selected {
    border-color: #2ecc71;
    background: #f0fff4;
}

.em-ticket-selectable .em-ticket-flex-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.em-ticket-radio {
    flex-shrink: 0;
}

.em-ticket-radio input[type="radio"] {
    cursor: pointer;
}

/* 確認モーダル */
.em-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-confirm-modal {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.2s ease-out;
}

.em-confirm-header h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.em-confirm-content > p {
    text-align: center;
    color: #34495e;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.em-confirm-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.em-confirm-detail {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.em-confirm-detail:last-child {
    margin-bottom: 0;
}

.em-confirm-detail strong {
    color: #2c3e50;
    display: inline-block;
    width: 70px;
}

.em-confirm-note {
    text-align: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0 0 1.5rem 0;
}

.em-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.em-confirm-yes {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 180px;
}

.em-confirm-yes:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.em-confirm-no {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 180px;
}

.em-confirm-no:hover {
    background-color: #dfe6e9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .em-confirm-modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .em-confirm-header h3 {
        font-size: 1.1rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 集合場所のスタイル */
.em-meeting-place {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.em-meeting-label {
    font-weight: 600;
    margin-right: 5px;
}

.em-meeting-place-private {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.em-private-label {
    font-weight: 600;
    color: #856404;
}

.em-private-message {
    color: #856404;
    font-style: italic;
}

/* 開催場所の制限表示 */
.em-venue-limited {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.em-venue-private-notice {
    padding: 10px;
    background: #e7f3ff;
    border-left: 3px solid #2196F3;
    margin-top: 10px;
    border-radius: 4px;
}

/* プライバシー情報の強調 */
.em-privacy-info-box {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

.em-privacy-info-box h4 {
    margin: 0 0 8px 0;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
}

.em-privacy-info-box p {
    margin: 0;
    font-size: 13px;
    color: #1b5e20;
    line-height: 1.6;
}

/* =============================================================================
   Event Album（白黒テーマ）
   ============================================================================= */

.ea-album-section {
    margin: 24px 0 0;
    padding: 20px 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    color: #1a1a1a;
}

.ea-album-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.ea-album-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.02em;
}

.ea-album-timer {
    margin: 0;
    font-size: 13px;
    color: #666666;
}

.ea-album-timer strong {
    font-family: "SF Mono", "Consolas", monospace;
    color: #000000;
}

.ea-message {
    min-height: 0;
    margin: 0 0 12px;
    font-size: 13px;
    color: #666666;
}

.ea-message:empty {
    display: none;
}

.ea-message.is-error {
    color: #8b0000;
}

/* Tabs */
.ea-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.ea-tab {
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #333333;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ea-tab:hover {
    background: #f5f5f5;
}

.ea-tab.is-active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Panels */
.ea-panel {
    display: none;
}

.ea-panel.is-active {
    display: block;
}

.ea-stats {
    color: #888888;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Gallery Grid */
.ea-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.ea-gallery p {
    grid-column: 1 / -1;
    color: #999999;
    font-size: 13px;
}

.ea-image-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.ea-image-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f0f0f0;
}

.ea-image-card .ea-dl-link {
    display: block;
    text-decoration: none;
}

.ea-image-card .ea-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.ea-image-card .ea-delete-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* Upload Form */
.ea-upload-form {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
}

.ea-file-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.ea-upload-form input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    font-size: 13px;
}

.ea-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.ea-btn:hover {
    background: #333333;
}

.ea-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.ea-help {
    margin: 8px 0 0;
    color: #999999;
    font-size: 12px;
}

/* Participants Management */
.ea-participants {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.ea-participant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
}

.ea-participant:last-child {
    border-bottom: 0;
}

.ea-participant-meta strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
}

.ea-participant-meta small {
    color: #999999;
    font-size: 12px;
}

.ea-action-btn {
    border: 1px solid #cccccc;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.ea-action-btn:hover {
    background: #f0f0f0;
}

.ea-action-btn.is-excluded {
    color: #8b0000;
    border-color: #d4a0a0;
    background: #faf0f0;
}

/* Responsive */
@media (max-width: 640px) {
    .ea-album-section {
        margin: 16px 0 0;
        padding: 14px 10px;
        border-radius: 8px;
    }

    .ea-album-title {
        font-size: 16px;
    }

    .ea-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
}

/* ============================================
   イベントアルバムセクション（シンプル版）
   ============================================ */

.em-event-album-section {
    margin: 20px 0 80px 0;
    padding: 0;
}

.em-album-header {
    text-align: center;
    padding: 12px 0 8px;
}

.em-album-header h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #666;
}

.em-album-subtitle {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: #999;
    font-weight: 400;
}

.em-album-feature-image {
    margin: 8px auto 12px;
    max-width: 120px;
}

.em-album-img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

/* ============================================
   イベント管理機能セクション（告知ヘッダー）
   ============================================ */

.em-event-manager-feature-section {
    margin: 20px 0 0;
    padding: 0;
}

.em-event-manager-header {
    text-align: center;
    padding: 12px 0 8px;
}

.em-event-manager-header h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #666;
}

.em-event-manager-subtitle {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: #999;
    font-weight: 400;
}

.em-event-manager-feature-image {
    margin: 8px auto 12px;
    max-width: 120px;
}

.em-event-manager-img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .em-event-album-section {
        margin: 16px 0 80px 0;
    }

    .em-album-header {
        padding: 10px 0 6px;
    }

    .em-album-header h2 {
        font-size: 13px;
    }

    .em-album-subtitle {
        font-size: 11px;
    }

    .em-album-feature-image {
        max-width: 100px;
    }

    .em-event-manager-feature-section {
        margin: 16px 0 0;
    }

    .em-event-manager-header h2 {
        font-size: 13px;
    }

    .em-event-manager-subtitle {
        font-size: 11px;
    }

    .em-event-manager-feature-image {
        max-width: 100px;
    }
}