/* PWA関連スタイル */

/* PWAインストールボタン */
.pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pwa-install-button:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pwa-install-button:active {
    transform: translateY(0);
}

/* トースト通知 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* PWA起動画面 */
.pwa-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pwa-splash-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pwa-splash-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.pwa-splash-subtext {
    font-size: 14px;
    color: #666;
}

/* 通知管理画面用スタイル（Tailwind CSS互換） */

/* 基本レイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* 背景色 */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-yellow-50 {
    background-color: #fffbeb;
}

.bg-orange-50 {
    background-color: #fff7ed;
}

/* テキスト色 */
.text-gray-900 {
    color: #111827;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-red-600 {
    color: #dc2626;
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-orange-600 {
    color: #ea580c;
}

.text-white {
    color: #ffffff;
}

/* フォント */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* レイアウト */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* マージン */
.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

/* ボーダー */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-yellow-200 {
    border-color: #fde68a;
}

.border-orange-200 {
    border-color: #fed7aa;
}

/* 角丸 */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

/* シャドウ */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* フォーム要素 */
.w-full {
    width: 100%;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-flex {
    display: inline-flex;
}

/* 入力フィールド */
input[type="text"],
input[type="url"],
input[type="datetime-local"],
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="datetime-local"]:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ボタン */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-600:hover {
    background-color: #1d4ed8;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-gray-300:hover {
    background-color: #9ca3af;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-red-600:hover {
    background-color: #b91c1c;
}

.bg-orange-600 {
    background-color: #ea580c;
}

.bg-orange-600:hover {
    background-color: #c2410c;
}

/* リンク */
/* a {
    color: #2563eb;
    text-decoration: none;
} */

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* グリッド */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

/* レスポンシブ */
@media (min-width: 768px) {
    .md-grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ユーティリティ */
.hidden {
    display: none;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.max-w-xs {
    max-width: 20rem;
}

/* アイコン */
.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

/* テーブル */
.table {
    display: table;
    width: 100%;
}

.min-w-full {
    min-width: 100%;
}

.divide-y > * + * {
    border-top-width: 1px;
    border-top-color: #e5e7eb;
}

.divide-gray-200 > * + * {
    border-top-color: #e5e7eb;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* テーブルヘッダー */
thead {
    background-color: #f9fafb;
}

th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* テーブルセル */
td {
    padding: 0.75rem 1.5rem;
    vertical-align: top;
}

/* バッジ */
.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.px-2-5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.py-0-5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.rounded-full {
    border-radius: 9999px;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

/* バッジの色 */
.bg-yellow-100 {
    background-color: #fef3c7;
}

.text-yellow-800 {
    color: #92400e;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.text-orange-800 {
    color: #9a3412;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.text-red-800 {
    color: #991b1b;
}

/* ページネーション */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

/* ダイアログ */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-opacity-50 {
    background-color: rgba(75, 85, 99, 0.5);
}

.overflow-y-auto {
    overflow-y: auto;
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

.z-50 {
    z-index: 50;
}

.relative {
    position: relative;
}

.top-20 {
    top: 5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-5 {
    padding: 1.25rem;
}

.border {
    border-width: 1px;
}

.w-96 {
    width: 24rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded-md {
    border-radius: 0.375rem;
}

.text-center {
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .py-8 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .md-grid-cols-5 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* 通知一覧ページ */
.notification-item {
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-business-name {
    font-weight: 600;
    color: #2196F3;
    font-size: 14px;
}

.notification-received-at {
    font-size: 12px;
    color: #999;
}

.notification-title {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    margin-bottom: 6px;
}

.notification-body {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-status {
    margin-top: 8px;
}

.notification-opened-badge,
.notification-unread-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.notification-opened-badge {
    background: #e8f5e9;
    color: #4CAF50;
}

.notification-unread-badge {
    background: #fff3e0;
    color: #FF9800;
} 