/* 風憩セコロ 管理システム 拡張スタイルシート */
/* ニュース・バナー・ヒーロー画像管理ページ用の追加クラス */

/* テーブル関連 */
.min-w-full { min-width: 100%; }
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }
.whitespace-nowrap { white-space: nowrap; }

/* 追加の背景色 */
.bg-purple-600 { background-color: #9333ea; }
.bg-purple-700 { background-color: #7c3aed; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-900 { background-color: #312e81; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }

/* 追加のテキスト色 */
.text-purple-800 { color: #6b21a8; }
.text-yellow-800 { color: #92400e; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-900 { color: #312e81; }

/* 追加のマージン・パディング */
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* グリッドクラス拡張 */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* フォーカス状態 */
.focus\:ring-purple-500:focus { box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.5); }
.focus\:border-purple-500:focus { border-color: #9333ea; }

/* ホバー効果拡張 */
.hover\:bg-purple-700:hover { background-color: #7c3aed; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-blue-900:hover { color: #1e3a8a; }
.hover\:text-red-900:hover { color: #7f1d1d; }

/* 追加のサイズクラス */
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* 空白・間隔 */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.-space-x-px > * + * { margin-left: -1px; }
.gap-3 { gap: 0.75rem; }

/* ボーダー拡張 */
.border-transparent { border-color: transparent; }
.border-blue-500 { border-color: #3b82f6; }
.border-t { border-top-width: 1px; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }

/* その他のユーティリティ */
.sticky { position: sticky; }
.break-all { word-break: break-all; }
.select-none { user-select: none; }
.opacity-60 { opacity: 0.6; }
.max-w-xs { max-width: 20rem; }
.max-h-48 { max-height: 12rem; }
.inline { display: inline; }
.text-center { text-align: center; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.uppercase { text-transform: uppercase; }
.font-semibold { font-weight: 600; }
.items-end { align-items: flex-end; }

/* 追加の背景色（汎用ユーティリティ） */
.bg-gray-300 { background-color: #d1d5db; }
.bg-red-50 { background-color: #fef2f2; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-200 { background-color: #fde68a; }
.bg-amber-600 { background-color: #d97706; }
.bg-amber-700 { background-color: #b45309; }
.bg-indigo-700 { background-color: #4338ca; }

/* 追加のテキスト色（汎用ユーティリティ） */
.text-blue-700 { color: #1d4ed8; }
.text-green-700 { color: #15803d; }
.text-red-700 { color: #b91c1c; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }

/* 追加のボーダー色（汎用ユーティリティ） */
.border-red-200 { border-color: #fecaca; }
.border-amber-100 { border-color: #fef3c7; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }
.border-amber-400 { border-color: #fbbf24; }
.border-amber-500 { border-color: #f59e0b; }

/* フォーカス状態（アンバー） */
.focus\:ring-amber-500:focus { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5); }
.focus\:border-amber-500:focus { border-color: #f59e0b; }

/* ホバー効果（アンバー/インディゴ） */
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.hover\:bg-amber-200:hover { background-color: #fde68a; }
.hover\:bg-amber-700:hover { background-color: #b45309; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }

/* 追加の位置・表示 */
.relative { position: relative; }
.z-0 { z-index: 0; }

/* 追加のフレックス */
.flex-1 { flex: 1 1 0%; }
.justify-between { justify-content: space-between; }

/* 特殊クラス */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

@media (min-width: 640px) {
    .sm\:hidden { display: none; }
    .sm\:flex { display: flex; }
    .sm\:flex-1 { flex: 1 1 0%; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
}

/* テーブル固有スタイル */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    text-align: left;
    vertical-align: top;
}

/* フォーム要素のスタイル拡張 */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* ボタンのベーススタイル */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
}

/* Sync側（Bootstrap系）の操作UIに寄せるための軽量ボタンスタイル */
.btn-sm {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* アイコンのみの小ボタン（製品一覧: 型番コピー等） */
.copy-model-btn {
    padding: 0;
    border-style: solid;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}
.btn-outline:hover {
    background: #f9fafb;
}

.btn-outline-secondary { border-color: #d1d5db; color: #374151; }
.btn-outline-info { border-color: #60a5fa; color: #1d4ed8; }
.btn-outline-success { border-color: #34d399; color: #047857; }
.btn-outline-warning { border-color: #f59e0b; color: #b45309; }
.btn-outline-danger { border-color: #f87171; color: #b91c1c; }

.btn-outline-secondary:hover { background: #f9fafb; }
.btn-outline-info:hover { background: #eff6ff; }
.btn-outline-success:hover { background: #ecfdf5; }
.btn-outline-warning:hover { background: #fffbeb; }
.btn-outline-danger:hover { background: #fef2f2; }

.btn-group {
    display: inline-flex;
    vertical-align: middle;
}
.btn-group .btn {
    border-radius: 0;
}
.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}
.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}
.btn-group .btn + .btn {
    margin-left: -1px;
}

/* リンクスタイル */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 追加のテキストサイズ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* 追加のフォントウェイト */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 高さ・幅の追加 */
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }

/* マージン追加 */
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-3 { margin-left: 0.75rem; }

/* その他の必要なクラス */
.overflow-x-auto { overflow-x: auto; }

/* 追加のレイアウトクラス */
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.leading-6 { line-height: 1.5rem; }
.tracking-wider { letter-spacing: 0.05em; }

/* フレックス関連 */
.flex-shrink-0 { flex-shrink: 0; }
.w-0 { width: 0px; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0px; }

/* 背景色拡張 */
.bg-black { --tw-bg-opacity: 1; background-color: rgb(0 0 0 / var(--tw-bg-opacity)); }
.bg-opacity-50 { --tw-bg-opacity: 0.5; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-green-500 { background-color: #10b981; }
.bg-yellow-500 { background-color: #f59e0b; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-purple-500 { background-color: #8b5cf6; }
.bg-purple-700 { background-color: #7c3aed; }

/* ホバー効果 */
.hover\\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\\:bg-purple-700:hover { background-color: #7c3aed; }
.hover\\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\\:text-indigo-900:hover { color: #312e81; }
.hover\\:text-red-900:hover { color: #7f1d1d; }

/* テーブル関連 */
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }
.uppercase { text-transform: uppercase; }

/* フォーカス状態 */
.focus\\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus\\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(59, 130, 246, 0.5); }
.focus\\:ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

/* スペース関連 */
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* オブジェクトフィット */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* Tailwind互換: バリエーション追加モーダルの高さ制御 */
.max-h-\[calc\(100vh-4rem\)\] { max-height: calc(100vh - 4rem); }

/* オーバーフロー */
.overflow-hidden { overflow: hidden; }

/* カスタムクラス */
.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* インライン関連 */
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* 境界線 */
.border-transparent { border-color: transparent; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

/* 角丸 */
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

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

/* 図面公開トグル */
.drawing-toggle-button {
    padding: 0;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: none;
    position: relative;
    overflow: hidden;
}

.drawing-toggle-button .drawing-toggle-knob {
    position: absolute;
    top: 50%;
    left: 0.25rem;
    width: 1rem;
    height: 1rem;
    transform: translate(0, -50%);
    transition: transform 0.2s ease-in-out;
}

.drawing-toggle-button[data-public="1"] .drawing-toggle-knob {
    transform: translate(1.25rem, -50%);
}

/* お問い合わせ管理ダッシュボード */
.inquiries-dashboard {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.inquiries-dashboard > .grid {
    position: relative;
    z-index: 1;
}

.stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.kanban-board {
    align-items: start;
}

.kanban-column {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.kanban-column__header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.kanban-column__title {
    letter-spacing: 0.02em;
}

.kanban-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1f2937;
}

.kanban-column__body {
    padding-top: 0.75rem;
}

.kanban-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kanban-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #cbd5f5, #94a3b8);
}

.kanban-card:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.kanban-card[data-status="new"]::before {
    background: linear-gradient(90deg, #f7b267, #f97316);
}

.kanban-card[data-status="completed"]::before {
    background: linear-gradient(90deg, #6ee7b7, #16a34a);
}

.status-chip {
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.kanban-card[data-status="new"] .status-chip {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.kanban-card[data-status="completed"] .status-chip {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.kanban-card__type {
    font-weight: 600;
    color: #64748b;
}

.bounce-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* フィルターパネル */
.filter-panel {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.filter-panel__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

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

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-input {
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.filter-date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-date-separator {
    color: #94a3b8;
    font-size: 0.75rem;
}

.filter-actions {
    align-items: flex-start;
    justify-content: flex-end;
}

.filter-reset {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    padding: 0.55rem 0.9rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

.filter-reset:hover {
    background: #e2e8f0;
}

/* モーダル */
.inquiry-modal__content {
    min-height: 280px;
}

.inquiry-modal__content.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

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

/* Operator role: hide destructive actions in UI (server also enforces permissions). */
.role-operator a[href*="/delete"],
.role-operator form[action*="/delete"],
.role-operator button[formaction*="/delete"],
.role-operator [onclick*="delete"] {
    display: none !important;
}
