/* /css/bulletin-board.css - 完全版（カレンダーとレイアウト改善版） */

/* ===========================
   掲示板ページスタイル
   =========================== */

   .bulletin-main {
    min-height: calc(100vh - 70px);
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.bulletin-main .container {
    max-width: 900px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease;
}

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.title-icon {
    font-size: 2rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ===========================
   スケルトンスクリーン
   =========================== */
.skeleton-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: fadeInUp 0.5s ease;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skeleton-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: block;
}

.skeleton-badge {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

.skeleton-content {
    margin-bottom: 1rem;
}

.skeleton-content .skeleton-line {
    margin-bottom: 0.5rem;
}

.skeleton-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===========================
   カレンダーセクション（改善版）
   =========================== */
.calendar-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-container {
    max-width: 900px;
    margin: 0 auto;
}

/* カレンダーヘッダー */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.05);
}

.calendar-today-btn {
    position: absolute;
    right: 0;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-today-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* カレンダーグリッド */
.calendar-grid {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 0.75rem 0;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.weekday.sunday {
    color: #ffcdd2;
}

.weekday.saturday {
    color: #bbdefb;
}

/* カレンダー日付（改善版） */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f0f0f0;
    padding: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    background: white;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.calendar-day:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calendar-day.other-month {
    background: #fafafa;
    opacity: 0.5;
}

.calendar-day.today {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
}

.calendar-day.sunday .day-number {
    color: #f44336;
}

.calendar-day.saturday .day-number {
    color: #2196f3;
}

.calendar-day.holiday {
    background: #ffebee;
}

/* イベントがある日のハイライト */
.calendar-day.has-events {
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    border: 1px solid #e3f2fd;
}

.calendar-day.has-events:hover {
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.day-number {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.day-holiday-name {
    font-size: 0.65rem;
    color: #f44336;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* イベントインジケーター（改善版） */
.day-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: auto;
    padding: 2px;
}

.event-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.event-indicator.free_event { background: #4CAF50; }
.event-indicator.paid_event { background: #FF9800; }
.event-indicator.free_meetup { background: #2196F3; }
.event-indicator.paid_meetup { background: #9C27B0; }
.event-indicator.free_distribution { background: #00BCD4; }
.event-indicator.sale_info { background: #F44336; }

/* イベント数バッジ（改善版） */
.event-count {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* イベントツールチップ（改善版） */
.event-tooltip {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 1000;
    width: 320px;
    max-width: calc(100vw - 40px);
    display: none;
    animation: fadeIn 0.3s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.event-tooltip.active {
    display: block;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.tooltip-date {
    font-weight: 600;
    color: #333;
}

.tooltip-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tooltip-close:hover {
    background: #f0f0f0;
    color: #333;
}

.tooltip-events {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* tooltip-event 2行レイアウト（改善版） */
.tooltip-event {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.tooltip-event:hover {
    background: #e9ecef;
    transform: translateX(3px);
    margin-right: 3px;
}

.tooltip-event.free_event { border-left-color: #4CAF50; }
.tooltip-event.paid_event { border-left-color: #FF9800; }
.tooltip-event.free_meetup { border-left-color: #2196F3; }
.tooltip-event.paid_meetup { border-left-color: #9C27B0; }
.tooltip-event.free_distribution { border-left-color: #00BCD4; }
.tooltip-event.sale_info { border-left-color: #F44336; }

/* 1行目: 時間とカテゴリー */
.tooltip-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.tooltip-event-time {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.tooltip-event-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: white;
    border-radius: 10px;
    margin-left: auto;
}

/* 2行目: プレビュー */
.tooltip-event-preview {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* ===========================
   Post Form (Shop Owner Only)
   =========================== */
.post-form-container {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: slideInUp 0.5s ease;
}

.toggle-form-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
}

.toggle-form-btn.active {
    background: linear-gradient(135deg, #f44336, #e91e63);
}

.toggle-form-btn.active .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Post Form */
.post-form-wrapper {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.post-form-wrapper.expanded {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1rem;
}

.bulletin-post-form {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.form-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0rem;
    color: #555;
}

.required {
    color: #f44336;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    padding: 0.75rem;
    padding-bottom: 2rem; /* 下部パディングを増やしてchar-count用のスペース確保 */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical; /* 縦方向のリサイズのみ許可 */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.char-count {
    position: absolute;
    bottom: 0.75rem; /* textareaの内側下部に配置 */
    right: 1rem;
    font-size: 0.75rem; /* サイズを少し小さく */
    color: #999;
    background: rgba(255, 255, 255, 0.9); /* 半透明の背景 */
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    pointer-events: none; /* クリックイベントを無効化 */
    z-index: 1;
}

.form-group textarea:focus ~ .char-count {
    color: #667eea;
    background: rgba(255, 255, 255, 0.95);
}

.char-count.warning {
    color: #ff9800;
    font-weight: 600;
}

.char-count.danger {
    color: #f44336;
    font-weight: 600;
}

/* Video & URL Preview */
.video-preview,
.url-preview {
    margin-top: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: none;
}

.video-preview.active,
.url-preview.active {
    display: block;
}

.video-preview iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.url-preview-card {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.url-preview-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.url-preview-info {
    flex: 1;
}

.url-preview-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.url-preview-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ===========================
   Search Filter Container
   =========================== */
.search-filter-container {
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 検索バー（リセットボタン統合） */
.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 2px solid #fef9f3;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.search-input:focus {
    border-color: #E8B4A0;
    background: white;
    box-shadow: 0 0 0 3px rgba(232, 180, 160, 0.1);
    outline: none;
}

.search-btn {
    padding: 0 1.25rem;
    background: linear-gradient(135deg, #E8B4A0, #A8C09A);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 180, 160, 0.3);
}

.search-icon {
    font-size: 1.1rem;
}

/* リセットボタン */
.reset-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 1rem;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #666;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    color: #333;
    transform: translateY(-1px);
}

.reset-icon {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.reset-btn:hover .reset-icon {
    transform: rotate(180deg);
}

.reset-text {
    font-size: 0.875rem;
}

/* フィルターバー */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

/* コンパクトなセレクトボックス */
.filter-select.compact {
    min-width: auto;
    padding: 0.5rem 0.75rem;
    padding-right: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23999' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.filter-select.compact:hover {
    border-color: #E8B4A0;
    background-color: #fcfcfc;
}

.filter-select.compact:focus {
    outline: none;
    border-color: #E8B4A0;
    box-shadow: 0 0 0 2px rgba(232, 180, 160, 0.15);
}

/* 古いスタイルを非表示 */
.filters-container,
.search-group {
    display: none !important;
}

/* ===========================
   Posts Container（改善版）
   =========================== */
.posts-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-height: 400px;
}

/* Post Card（改善版） */
.post-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-card.pending {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
}

.post-card.pending .post-date-badge,
.post-card.pending .post-category-badge {
    opacity: 0.6;
}

.post-card.pending .post-header,
.post-card.pending .post-content,
.post-card.pending .post-media,
.post-card.pending .post-actions,
.post-card.pending .replies-section-compact {
    opacity: 0.6;
}

/* pending-badgeは透過しない */
.post-card.pending .pending-badge {
    opacity: 1 !important;
    z-index: 100;
    /* 影を強調して浮いているように見せる */
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.pending-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.post-card.pending_approval {
    opacity: 0.8;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
}

/* post-dateを左上に配置 */
.post-date-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

/* post-categoryを右上に配置 */
.post-category-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-category-badge.free_event { background: linear-gradient(135deg, #4CAF50, #45a049); }
.post-category-badge.paid_event { background: linear-gradient(135deg, #FF9800, #F57C00); }
.post-category-badge.free_meetup { background: linear-gradient(135deg, #2196F3, #1976D2); }
.post-category-badge.paid_meetup { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.post-category-badge.free_distribution { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.post-category-badge.sale_info { background: linear-gradient(135deg, #F44336, #D32F2F); }

/* post-header 改善 */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.post-datetime {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.post-event-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f0f7ff;
    border-radius: 6px;
}

.post-event-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #fff3e0;
    border-radius: 6px;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-category.free_event { background: linear-gradient(135deg, #4CAF50, #45a049); }
.post-category.paid_event { background: linear-gradient(135deg, #FF9800, #F57C00); }
.post-category.free_meetup { background: linear-gradient(135deg, #2196F3, #1976D2); }
.post-category.paid_meetup { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.post-category.free_distribution { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.post-category.sale_info { background: linear-gradient(135deg, #F44336, #D32F2F); }

/* post-content 文字を大きく読みやすく */
.post-content {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

/* Media Embeds（順序変更: URL → 動画） */
.post-media {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-link {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.post-link:hover {
    background: #e9ecef;
}

.post-link-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-link-info {
    flex: 1;
}

.post-link-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.post-link-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.post-link-url {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

.post-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================
   Post Actions
   =========================== */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.action-btn:hover {
    background: #fff;
    border-color: #E8B4A0;
    transform: translateY(-1px);
}

.action-btn.liked {
    background: #ffe8e8;
    border-color: #ffb6b6;
}

.owner-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.edit-btn {
    color: #4a90e2;
    border-color: #4a90e2;
}

.edit-btn:hover {
    background: #4a90e2;
    color: white;
}

.delete-btn {
    color: #e74c3c;
    border-color: #e74c3c;
}

.delete-btn:hover {
    background: #e74c3c;
    color: white;
}

.share-buttons {
    display: flex;
    gap: 0.25rem;
}

.share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn.line:hover {
    background: #00B900;
    color: white;
    border-color: #00B900;
}

/* ===========================
   コンパクトな返信表示（完全インライン版）
   =========================== */
   .post-replies-compact,
   .replies-section-compact {
       margin-top: 1rem;
       padding: 0.75rem;
       background: rgba(0,0,0,0.02);
       border-radius: 8px;
   }
   
   .replies-count {
       font-size: 0.9rem;
       color: #666;
       margin-bottom: 0.5rem;
       font-weight: 500;
   }
   
   /* 返信アイテム - 完全インライン表示 */
   .reply-compact,
   .reply-item-compact {
       padding: 0.5rem;
       margin: 0.25rem 0;
       background: white;
       border-radius: 6px;
       font-size: 0.85rem;
       line-height: 1.5;
       word-wrap: break-word;
   }
   
   /* 返信の各要素をインライン表示 */
   .reply-item-compact .reply-author {
       font-weight: 600;
       color: #333;
       display: inline;
   }
   
   .reply-item-compact .reply-date {
       color: #999;
       font-size: 0.75rem;
       display: inline;
       margin-left: 0.25rem;
   }
   
   .reply-item-compact .reply-separator {
       color: #999;
       display: inline;
       margin: 0 0.25rem;
   }
   
   .reply-item-compact .reply-content {
       color: #555;
       word-break: break-word;
       display: inline;
   }
   
   /* すべての返信を見るボタン */
   .show-all-replies-btn,
   .show-all-replies {
       width: 100%;
       padding: 0.5rem;
       margin-top: 0.5rem;
       background: linear-gradient(135deg, #667eea, #764ba2);
       color: white;
       border: none;
       border-radius: 6px;
       font-size: 0.85rem;
       font-weight: 500;
       cursor: pointer;
       transition: all 0.2s ease;
   }
   
   .show-all-replies-btn:hover,
   .show-all-replies:hover {
       transform: translateY(-1px);
       box-shadow: 0 2px 8px rgba(102,126,234,0.3);
   }
   
   .all-replies-container {
       margin-top: 0.5rem;
   }

/* 返信削除ボタン（インライン対応版） */
.reply-delete-btn {
    display: inline-block;  /* インラインブロックに変更 */
    margin-left: 0.5rem;  /* 左マージンを小さく */
    padding: 0.15rem 0.4rem;  /* 小さめのパディング */
    background: white;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 4px;
    font-size: 0.7rem;  /* より小さいフォント */
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;  /* 垂直方向の位置調整 */
}

.reply-delete-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: #999;
}

.pagination-info {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-message {
    color: #666;
}

/* Reply Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-body {
    padding: 1.5rem;
}

.original-post-preview {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.original-post {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.original-post .post-author {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.original-post .post-content {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

#reply-form .form-group {
    margin-bottom: 1rem;
}

#reply-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

#reply-form input,
#reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#reply-form input:focus,
#reply-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
}

/* Loading */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid #2196F3;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
}

/* Post Card Highlight Animation */
.post-card.highlight {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102,126,234,0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
}

/* ===========================
   モバイル対応（完全版）
   =========================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    /* form-gridのgapをなくす */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* form-group間の余白を調整 */
    .form-grid .form-group {
        margin-bottom: 0;
    }
    
    .form-grid .form-group:last-child {
        margin-bottom: 0;
    }
    
    .post-card {
        padding: 1.25rem 1rem;
    }
    
    /* バッジの位置調整 */
    .post-date-badge {
        top: -8px;
        left: 10px;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .post-category-badge {
        top: -8px;
        right: 10px;
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* ヘッダーレイアウト改善 */
    .post-header {
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .post-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .post-author {
        font-size: 1rem;
        font-weight: 600;
        margin-right: auto;
    }
    
    .post-datetime {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        font-size: 0.75rem;
    }
    
    .post-event-date,
    .post-event-time {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    /* 投稿内容を読みやすく */
    .post-content {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        color: #333;
    }
    
    /* Search Filter Container - モバイル */
    .search-filter-container {
        padding: 0.75rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .search-bar {
        margin-bottom: 0.5rem;
    }
    
    .search-input {
        padding: 0.75rem 1rem;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 0 1rem;
        min-width: 44px;
    }
    
    .reset-btn {
        padding: 0 0.75rem;
    }
    
    .reset-text {
        display: none;
    }
    
    /* フィルターバー - モバイル */
    .filter-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }
    
    .filter-select.compact {
        width: 100%;
        padding: 0.625rem 0.75rem;
        padding-right: 2rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .filter-select.compact:nth-child(3) {
        grid-column: 1 / -1;
    }
    
    /* Post Actions - モバイル新レイアウト */
    .post-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .post-actions-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .action-buttons {
        display: flex;
        gap: 0.5rem;
        flex: 0 0 auto;
    }
    
    .share-buttons {
        display: flex;
        gap: 0.25rem;
        flex: 0 0 auto;
        border-top: none;
        padding-top: 0;
        margin-left: auto;
    }
    
    .owner-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }
    
    .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .share-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .edit-btn,
    .delete-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .post-link {
        flex-direction: column;
    }
    
    .post-link-image {
        width: 100%;
        height: 150px;
    }
    
    /* 返信セクションの調整（インライン版） */
    .replies-section-compact {
        margin-top: 0.75rem;
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    .reply-item-compact {
        padding: 0.4rem;
        font-size: 0.8rem;
        line-height: 1.5;  /* モバイルでの行間調整 */
    }
    
    /* 投稿者名のスタイル */
    .reply-compact .reply-author,
    .reply-item-compact .reply-author {
        font-size: 0.8rem;
    }
    
    /* 日付のスタイル */
    .reply-compact .reply-date,
    .reply-item-compact .reply-date {
        font-size: 0.7rem;
    }
    
    /* 返信内容のスタイル */
    .reply-compact .reply-text,
    .reply-item-compact .reply-content {
        font-size: 0.8rem;
    }
    
    /* 削除ボタンのスタイル */
    .reply-delete-btn {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
    
    /* カレンダー - モバイル（完全版） */
    .calendar-section {
        padding: 1rem 0;
    }
    
    .calendar-container {
        max-width: 100%;
        padding: 0;
    }
    
    .calendar-header {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .calendar-title {
        font-size: 1.2rem;
    }
    
    .calendar-today-btn {
        position: static;
        margin-left: auto;
    }
    
    .calendar-grid {
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .calendar-days {
        gap: 0;
        padding: 0;
        background: transparent;
    }
    
    .calendar-day {
        aspect-ratio: 1;
        min-height: unset;
        width: 100%;
        padding: 0.2rem;
        border: 0.5px solid #f0f0f0;
        border-radius: 0;
    }
    
    .calendar-weekdays {
        padding: 0.5rem 0;
    }
    
    .weekday {
        font-size: 0.75rem;
    }
    
    .day-number {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .day-holiday-name {
        font-size: 0.5rem;
        line-height: 1;
        margin-bottom: 0.1rem;
    }
    
    .day-events {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 1px;
    }
    
    .event-indicator {
        width: 4px;
        height: 4px;
    }
    
    .event-count {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
        min-width: 16px;
        top: 2px;
        right: 2px;
    }
    
    .calendar-day:hover {
        transform: none;
        box-shadow: none;
        z-index: 1;
    }
    
    .calendar-day.today {
        border: 1.5px solid #ff9800;
    }
    
    .calendar-day.other-month {
        opacity: 0.3;
    }
    
    .event-tooltip {
        width: calc(100vw - 20px) !important;
        max-width: 400px;
        left: 50% !important;
        transform: translateX(-50%);
        margin: 0 auto;
    }
    
    .event-tooltip.active {
        display: block;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .calendar-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .bulletin-post-form {
        padding: 0.5rem;
    }

    .pending-badge {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }

    .form-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: #333;
    }

    .char-count {
        font-size: 0.7rem;
        bottom: 0.5rem;
        right: 0.75rem;
        padding: 0.1rem 0.3rem;
    }
    
    .form-group textarea {
        padding-bottom: 1.75rem; /* モバイルでの調整 */
    }
}

/* ===========================
   小型スマートフォン対応（完全版）
   =========================== */
@media (max-width: 375px) {
    /* Post Cardさらにコンパクト化 */
    .post-card {
        padding: 1rem 0.75rem;
    }
    
    .post-date-badge,
    .post-category-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .post-author {
        font-size: 0.95rem;
    }
    
    .post-content {
        font-size: 0.9rem;
    }
    
    /* form-gridのgapをなくす */
    .form-grid {
        gap: 0;
    }
    
    .form-grid .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-grid .form-group:last-child {
        margin-bottom: 0;
    }
    
    /* Search Filter Container - 小型スマホ */
    .search-filter-container {
        padding: 0.625rem;
    }
    
    .search-bar {
        gap: 0.375rem;
    }
    
    .search-input {
        padding: 0.625rem 0.875rem;
    }
    
    .filter-select.compact {
        padding: 0.5rem 0.625rem;
        padding-right: 1.75rem;
        font-size: 0.8125rem;
    }
    
    /* フィルターを縦並びに */
    .filter-group {
        grid-template-columns: 1fr;
    }
    
    .filter-select.compact:nth-child(3) {
        grid-column: 1;
    }
    
    /* Post Actions - 小型スマホ */
    .post-actions {
        gap: 0.5rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .edit-btn,
    .delete-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* 返信表示 - 小型スマホ（インライン版） */
    .reply-item-compact {
        padding: 0.3rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .reply-compact .reply-author,
    .reply-item-compact .reply-author {
        font-size: 0.75rem;
    }
    
    .reply-compact .reply-date,
    .reply-item-compact .reply-date {
        font-size: 0.65rem;
    }
    
    .reply-compact .reply-text,
    .reply-item-compact .reply-content {
        font-size: 0.75rem;
    }
    
    .reply-delete-btn {
        font-size: 0.6rem;
        padding: 0.08rem 0.25rem;
    }
    
    /* カレンダー - 小型スマホ */
    .calendar-container {
        padding: 0 0.25rem;
    }
    
    .calendar-header {
        padding: 0 0.25rem;
        gap: 0.5rem;
    }
    
    .calendar-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .calendar-title {
        font-size: 1.1rem;
    }
    
    .calendar-today-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        padding: 0.15rem;
    }
    
    .calendar-weekdays {
        padding: 0.5rem 0;
    }
    
    .weekday {
        font-size: 0.7rem;
    }
    
    .day-number {
        font-size: 0.75rem;
    }
    
    .day-holiday-name {
        font-size: 0.45rem;
    }
    
    .event-indicator {
        width: 3px;
        height: 3px;
    }
    
    .event-count {
        font-size: 0.55rem;
        padding: 0.05rem 0.2rem;
        min-width: 14px;
    }

    .char-count {
        font-size: 0.65rem;
        bottom: 0.4rem;
        right: 0.5rem;
    }
    
    .form-group textarea {
        padding-bottom: 1.5rem;
    }
}

/* ===========================
   より大きなスマホ対応（追加）
   =========================== */
@media (min-width: 376px) and (max-width: 480px) {
    .calendar-container {
        padding: 0 0.5rem;
    }
    
    .calendar-day {
        padding: 0.25rem;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
}



/* ===========================
   LINE促進バナー（スタイリッシュ版）
   =========================== */
   .line-promo-banner {
    background: #ffffff;
    border-radius: 16px;
    margin: 1.5rem auto;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-promo-banner.expanded {
    box-shadow: 0 8px 32px rgba(0,195,0,0.12);
}

/* ヘッダー（常に表示） */
.line-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.line-promo-header:hover {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f9f0 100%);
    border-color: #e0f0e0;
}

/* コンテンツ（開閉部分 - スタイリッシュ版） */
.line-promo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    margin-top: -16px;
    padding-top: 16px;
    border-radius: 0 0 16px 16px;
}

.line-promo-content.open {
    max-height: 500px;
}

.promo-inner {
    padding: 1.5rem 1.25rem 1.75rem;
}

/* 2カラムレイアウト（PC） */
.promo-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: center;
}

/* 左側：メッセージエリア */
.promo-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 特典カード（コンパクト版） */
.benefits-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,195,0,0.15);
}

.benefits-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00a000;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #555;
}

.benefit-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.benefit-text {
    line-height: 1.3;
}

.benefit-text strong {
    color: #00a000;
    font-weight: 600;
}

/* メッセージエリア（洗練版） */
.message-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.message-content {
    flex: 1;
}

.main-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.5rem;
}

.highlight-text {
    display: inline-block;
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    position: relative;
}

.sub-message {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #666;
}

.check-icon {
    color: #4caf50;
    font-size: 0.9rem;
}

/* 右側：登録エリア */
.promo-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.promo-right::before {
    content: '人気';
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* QRコード（コンパクト） */
.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-image {
    width: 100px;
    height: 100px;
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 0.375rem;
    background: white;
}

.qr-text {
    font-size: 0.7rem;
    color: #999;
}

/* 登録ボタン（洗練版） */
.line-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #00c300, #00a000);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,195,0,0.25);
    position: relative;
    overflow: hidden;
}

.line-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.line-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.line-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,195,0,0.35);
}

/* 登録者数表示 */
.registration-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #666;
    padding: 0.375rem 0.75rem;
    background: #f5f5f5;
    border-radius: 20px;
}

.count-number {
    font-weight: 700;
    color: #00a000;
}

/* タブレット対応 */
@media (max-width: 960px) and (min-width: 769px) {
    .promo-layout {
        grid-template-columns: 1fr 240px;
        gap: 1.5rem;
    }
    
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ対応（シングルカラム） */
@media (max-width: 768px) {
    .line-promo-content.open {
        max-height: 600px;
    }
    
    .promo-inner {
        padding: 1.25rem 1rem 1.5rem;
    }
    
    .promo-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .benefit-item {
        font-size: 0.85rem;
    }
    
    .message-area {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .main-message {
        font-size: 0.95rem;
    }
    
    .promo-right {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .qr-image {
        width: 120px;
        height: 120px;
    }
}

/* アニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-promo-content.open .promo-inner > * {
    animation: slideDown 0.4s ease forwards;
}

.line-promo-content.open .promo-left {
    animation-delay: 0.1s;
}

.line-promo-content.open .promo-right {
    animation-delay: 0.2s;
}

/* ===========================
   LINE促進バナー（閉じた状態）
   =========================== */
   .line-promo-banner {
    background: #ffffff;
    border-radius: 16px;
    margin: 1.5rem auto;
    max-width: 900px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ヘッダー（常に表示） */
.line-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.line-promo-header:hover {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f9f0 100%);
    border-color: #e0f0e0;
}

.line-promo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.line-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.promo-text {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.badge-new {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.toggle-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.3s ease;
    color: #999;
}

.toggle-arrow:hover {
    color: #666;
}

/* コンテンツ（閉じた状態） */
.line-promo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .line-promo-header {
        padding: 0.75rem 1rem;
    }
    
    .promo-text {
        font-size: 0.85rem;
    }
    
    .line-icon {
        font-size: 1.1rem;
    }
}