/**
 * Frontend styles for Malicious User Report plugin
 * Mobile-first responsive design
 */

/* Form Container */
.mur-report-form-container {
	max-width: 800px; /* 画像アップロード用に幅を拡張 */
	margin: 0 auto;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mur-report-form-container h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 24px;
	text-align: center;
}

/* Form Groups */
.mur-form-group {
	margin-bottom: 25px;
}

/* 画像アップロードグループの特別なスタイル */
.mur-form-group.mur-image-upload-group {
	margin-bottom: 35px;
}

.mur-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #555;
}

.mur-form-group label .required {
	color: #e74c3c;
}

.mur-form-group label small {
	font-weight: normal;
	color: #999;
}

/* Form Inputs */
.mur-form-group input[type="text"],
.mur-form-group input[type="url"],
.mur-form-group select,
.mur-form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s, box-shadow 0.3s;
	box-sizing: border-box;
}

.mur-form-group input[type="text"]:focus,
.mur-form-group input[type="url"]:focus,
.mur-form-group select:focus,
.mur-form-group textarea:focus {
	outline: none;
	border-color: #4CAF50;
	box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Error state */
.mur-form-group input.error,
.mur-form-group select.error,
.mur-form-group textarea.error {
	border-color: #e74c3c;
}

.mur-form-group input.error:focus,
.mur-form-group select.error:focus,
.mur-form-group textarea.error:focus {
	border-color: #e74c3c;
	box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Field Description */
.mur-field-description {
	margin-top: 5px;
	font-size: 14px;
	color: #666;
}

/* URL Error Message */
.url-error {
	display: block;
	margin-top: 5px;
	font-size: 14px;
	color: #e74c3c;
}

/* Character Counter */
.char-counter {
	display: inline-block;
	margin-top: 5px;
	font-size: 14px;
	color: #666;
}

.char-counter.warning {
	color: #f39c12;
}

/* Submit Button */
.mur-submit-button {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.1s;
}

.mur-submit-button:hover {
	background: #45a049;
}

.mur-submit-button:active {
	transform: translateY(1px);
}

.mur-submit-button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Form Messages */
.mur-form-message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.mur-form-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.mur-form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Search Form */
.mur-search-form {
	max-width: 600px;
	margin: 0 auto 30px;
}

.mur-search-form .search-wrapper {
	display: flex;
	gap: 10px;
}

.mur-search-form input[type="search"] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.mur-search-form button {
	padding: 10px 20px;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
}

/* User List */
.mur-user-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mur-user-item {
	padding: 15px;
	margin-bottom: 10px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: box-shadow 0.3s;
}

.mur-user-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mur-user-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.mur-user-name {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.mur-user-score {
	display: flex;
	align-items: center;
}

/* Malicious Score Stars */
.mur-stars {
	display: inline-flex;
	color: #ffc107;
	font-size: 18px;
}

.mur-stars .star {
	margin-right: 2px;
}

.mur-stars .star.filled {
	color: #ffc107;
}

.mur-stars .star.empty {
	color: #ddd;
}

/* Score Level Colors */
.mur-score-level {
	display: inline-block;
	padding: 4px 8px;
	margin-left: 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.mur-score-level.low {
	background: #d4edda;
	color: #155724;
}

.mur-score-level.medium {
	background: #fff3cd;
	color: #856404;
}

.mur-score-level.high {
	background: #f8d7da;
	color: #721c24;
}

/* Platform Badge */
.mur-platform-badge {
	display: inline-block;
	padding: 4px 8px;
	background: #e9ecef;
	color: #495057;
	border-radius: 4px;
	font-size: 12px;
}

/* Responsive Design */
@media (max-width: 767px) {
	.mur-report-form-container {
		padding: 15px;
	}

	.mur-report-form-container h3 {
		font-size: 20px;
	}

	.mur-form-group input[type="text"],
	.mur-form-group input[type="url"],
	.mur-form-group select,
	.mur-form-group textarea {
		font-size: 16px; /* Prevent zoom on iOS */
	}

	.mur-search-form .search-wrapper {
		flex-direction: column;
	}

	.mur-user-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.mur-user-score {
		margin-top: 10px;
	}
}

@media (max-width: 480px) {
	.mur-report-form-container {
		margin: 0 -15px;
		border-radius: 0;
	}
}

/* Loading State */
.mur-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #4CAF50;
	border-radius: 50%;
	animation: mur-spin 1s linear infinite;
}

@keyframes mur-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Accessibility */
.mur-report-form-container *:focus {
	outline: 2px solid #4CAF50;
	outline-offset: 2px;
}

/* Flag Report Button */
.mur-flag-button {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	transition: background-color 0.3s;
	margin-left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.mur-flag-button:hover {
	background: #c0392b;
}

.mur-flag-button:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
}

/* Flag Modal */
.mur-flag-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.mur-flag-modal-content {
	background-color: #fefefe;
	margin: 10% auto;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	width: 90%;
	max-width: 500px;
	position: relative;
	animation: mur-modal-show 0.3s ease-out;
}

@keyframes mur-modal-show {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mur-flag-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.mur-flag-modal-title {
	margin: 0;
	color: #e74c3c;
	font-size: 18px;
}

.mur-flag-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s;
}

.mur-flag-modal-close:hover {
	background: #f1f1f1;
	color: #333;
}

.mur-flag-form-group {
	margin-bottom: 15px;
}

.mur-flag-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #555;
}

.mur-flag-form-group select,
.mur-flag-form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 14px;
}

.mur-flag-form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.mur-flag-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.mur-flag-submit {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s;
}

.mur-flag-submit:hover {
	background: #c0392b;
}

.mur-flag-submit:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
}

.mur-flag-cancel {
	background: #95a5a6;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s;
}

.mur-flag-cancel:hover {
	background: #7f8c8d;
}

.mur-flag-message {
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	display: none;
}

.mur-flag-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.mur-flag-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Mobile Responsiveness for Flag Modal */
@media (max-width: 768px) {
	.mur-flag-modal-content {
		margin: 5% auto;
		width: 95%;
		padding: 15px;
	}
	
	.mur-flag-modal-actions {
		flex-direction: column;
	}
	
	.mur-flag-submit,
	.mur-flag-cancel {
		width: 100%;
		margin-bottom: 5px;
	}
}

/* reCAPTCHA v3 Badge Styles */
.grecaptcha-badge {
	visibility: visible !important;
}

/* Optional: Position the badge */
.mur-report-form-container {
	position: relative;
}

/* Form Buttons */
.mur-form-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}


/* Preview Modal */
.mur-preview-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.mur-preview-modal.mur-preview-show {
	opacity: 1;
	visibility: visible;
}

.mur-preview-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.mur-preview-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	max-width: 90%;
	max-height: 90%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.mur-preview-header {
	padding: 20px;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #f8f9fa;
}

.mur-preview-header h3 {
	margin: 0;
	color: #333;
}

.mur-preview-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #6c757d;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mur-preview-close:hover {
	color: #333;
}

.mur-preview-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.mur-preview-section {
	margin-bottom: 20px;
}

.mur-preview-section h4 {
	margin: 0 0 10px 0;
	color: #333;
	font-size: 16px;
	font-weight: 600;
}

.mur-preview-section p {
	margin: 0;
	color: #666;
	line-height: 1.6;
}

.mur-preview-section ul {
	margin: 0;
	padding-left: 20px;
	color: #666;
}

.mur-preview-section li {
	margin-bottom: 5px;
}

.mur-preview-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
	margin-top: 10px;
}

.mur-preview-image {
	text-align: center;
}

.mur-preview-image img {
	width: 100%;
	max-width: 150px;
	height: 100px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #dee2e6;
}

.mur-preview-image p {
	margin: 5px 0 0 0;
	font-size: 12px;
	color: #888;
}

.mur-preview-footer {
	padding: 20px;
	border-top: 1px solid #dee2e6;
	display: flex;
	justify-content: space-between;
	background-color: #f8f9fa;
}

.mur-preview-edit {
	background-color: #6c757d;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.mur-preview-edit:hover {
	background-color: #5a6268;
}

.mur-preview-submit {
	background-color: #007cba;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.mur-preview-submit:hover {
	background-color: #005a87;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.mur-form-buttons {
		flex-direction: column;
	}
	
	.mur-preview-content {
		max-width: 95%;
		max-height: 95%;
	}
	
	.mur-preview-header,
	.mur-preview-body,
	.mur-preview-footer {
		padding: 15px;
	}
	
	.mur-preview-footer {
		flex-direction: column;
		gap: 10px;
	}
	
	.mur-preview-images {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
}

/* Announcements */
.mur-announcements {
	margin-bottom: 30px;
}

.mur-announcement {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 15px;
	position: relative;
}

.mur-announcement-urgent {
	background-color: #f8d7da;
	border-color: #f5c6cb;
}

.mur-announcement-high {
	background-color: #fff3cd;
	border-color: #ffeaa7;
}

.mur-announcement-normal {
	background-color: #d4edda;
	border-color: #c3e6cb;
}

.mur-announcement-low {
	background-color: #d1ecf1;
	border-color: #bee5eb;
}

.mur-announcement-type-warning {
	border-left: 4px solid #ffc107;
}

.mur-announcement-type-info {
	border-left: 4px solid #17a2b8;
}

.mur-announcement-type-maintenance {
	border-left: 4px solid #6c757d;
}

.mur-announcement-type-update {
	border-left: 4px solid #28a745;
}

.mur-announcement-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.mur-announcement-title {
	margin: 0;
	color: #333;
	font-size: 18px;
	font-weight: 600;
}

.mur-announcement-date {
	color: #6c757d;
	font-size: 14px;
}

.mur-announcement-content {
	color: #555;
	line-height: 1.6;
}

.mur-announcement-content p {
	margin-bottom: 10px;
}

.mur-announcement-content p:last-child {
	margin-bottom: 0;
}

/* Priority indicators */
.mur-announcement-urgent::before {
	content: "緊急";
	position: absolute;
	top: -1px;
	right: -1px;
	background-color: #dc3545;
	color: white;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 0 8px 0 8px;
}

.mur-announcement-high::before {
	content: "重要";
	position: absolute;
	top: -1px;
	right: -1px;
	background-color: #ffc107;
	color: #212529;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 0 8px 0 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.mur-announcement-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.mur-announcement-title {
		margin-bottom: 5px;
	}
	
	.mur-announcement-date {
		font-size: 12px;
	}
}

/* Thanks Page */
.mur-thanks-page {
	text-align: center;
	padding: 40px 20px;
}

.mur-thanks-icon {
	font-size: 60px;
	color: #28a745;
	margin-bottom: 20px;
	display: inline-block;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: #d4edda;
	line-height: 80px;
	border: 2px solid #28a745;
}

.mur-thanks-page h2 {
	color: #333;
	margin-bottom: 15px;
	font-size: 28px;
}

.mur-thanks-message {
	color: #666;
	font-size: 16px;
	margin-bottom: 30px;
	line-height: 1.6;
}

.mur-thanks-details {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
	text-align: left;
}

.mur-thanks-details p {
	margin-bottom: 10px;
	color: #333;
}

.mur-thanks-details p:last-child {
	margin-bottom: 0;
	color: #666;
	font-size: 14px;
}

.mur-thanks-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-bottom: 40px;
}

.mur-thanks-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s;
	border: 2px solid transparent;
}

.mur-thanks-new-report {
	background-color: #007cba;
	color: white;
}

.mur-thanks-new-report:hover {
	background-color: #005a87;
	color: white;
}

.mur-thanks-home {
	background-color: transparent;
	color: #007cba;
	border-color: #007cba;
}

.mur-thanks-home:hover {
	background-color: #007cba;
	color: white;
}

.mur-thanks-info {
	text-align: left;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 20px;
}

.mur-thanks-info h3 {
	color: #333;
	margin-bottom: 15px;
	font-size: 18px;
}

.mur-thanks-info ul {
	margin: 0;
	padding-left: 20px;
	color: #666;
}

.mur-thanks-info li {
	margin-bottom: 8px;
	line-height: 1.5;
}

.mur-thanks-info li:last-child {
	margin-bottom: 0;
}

/* Mobile Responsive for Thanks Page */
@media (max-width: 768px) {
	.mur-thanks-page {
		padding: 30px 15px;
	}
	
	.mur-thanks-icon {
		font-size: 50px;
		width: 70px;
		height: 70px;
		line-height: 70px;
	}
	
	.mur-thanks-page h2 {
		font-size: 24px;
	}
	
	.mur-thanks-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.mur-thanks-button {
		width: 100%;
		max-width: 300px;
		text-align: center;
	}
}

/* Print Styles */
@media print {
	.mur-report-form-container {
		box-shadow: none;
		border: 1px solid #ddd;
	}

	.mur-submit-button,
	.mur-flag-button,
	.mur-flag-modal,
	.mur-preview-modal,
	.mur-thanks-actions {
		display: none;
	}
	
	/* reCAPTCHAバッジは印刷時も表示 */
	.grecaptcha-badge {
		display: block !important;
		visibility: visible !important;
	}
}

/* ========== reCAPTCHA v3 表示設定 ========== */

/* reCAPTCHA v3 バッジの確実な表示 */
.grecaptcha-badge {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
	position: fixed !important;
	bottom: 14px !important;
	right: 14px !important;
	z-index: 999999 !important;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3) !important;
}

/* reCAPTCHA通知テキスト */
.mur-recaptcha-notice {
	margin: 15px 0;
	padding: 10px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
	color: #666;
}

.mur-recaptcha-notice a {
	color: #0073aa;
	text-decoration: underline;
}

.mur-recaptcha-notice a:hover {
	color: #005177;
}

/* 報告フォーム内でのreCAPTCHA配置調整 */
#mur-report-form .mur-recaptcha-notice {
	margin-top: 20px;
	margin-bottom: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
	.grecaptcha-badge {
		bottom: 60px !important;
		right: 10px !important;
	}
	
	.mur-recaptcha-notice {
		font-size: 12px;
		padding: 8px;
	}
}

/* 超小画面（スマートフォン） */
@media (max-width: 480px) {
	.grecaptcha-badge {
		bottom: 80px !important;
		right: 8px !important;
		transform: scale(0.9);
	}
}

/* ========== モバイルハンバーガーメニュー ========== */

/* モバイルヘッダー基本スタイル */
.mur-mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 1000;
	border-bottom: 1px solid #e0e0e0;
}

.mur-mobile-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	padding: 0 15px;
	max-width: 100%;
}

.mur-mobile-site-title {
	font-size: 18px;
	font-weight: bold;
	flex: 1;
}

.mur-mobile-site-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mur-mobile-site-title a:hover {
	color: #0073aa;
}

/* ハンバーガーボタン */
.mur-hamburger {
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.mur-hamburger:hover {
	background-color: #f5f5f5;
}

.mur-hamburger:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.mur-hamburger-line {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #333;
	margin: 2px 0;
	transition: all 0.3s ease-in-out;
	border-radius: 1px;
}

/* ハンバーガーアニメーション */
.mur-hamburger.active .mur-hamburger-line:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.mur-hamburger.active .mur-hamburger-line:nth-child(2) {
	opacity: 0;
	transform: translateX(-20px);
}

.mur-hamburger.active .mur-hamburger-line:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* モバイルメニュー */
.mur-mobile-menu {
	position: fixed;
	top: 60px;
	right: -300px;
	width: 280px;
	height: calc(100vh - 60px);
	background-color: #fff;
	box-shadow: -2px 0 10px rgba(0,0,0,0.15);
	transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 999;
	overflow-y: auto;
	border-left: 1px solid #e0e0e0;
}

.mur-mobile-menu.active {
	right: 0;
}

.mur-mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mur-mobile-menu-list li {
	border-bottom: 1px solid #f0f0f0;
}

.mur-mobile-menu-list li:last-child {
	border-bottom: none;
}

.mur-mobile-menu-list a {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 16px;
	position: relative;
}

.mur-mobile-menu-list a:hover,
.mur-mobile-menu-list a:focus {
	background-color: #f8f9fa;
	color: #0073aa;
	transform: translateX(5px);
}

.mur-mobile-menu-list a:focus {
	outline: 2px solid #0073aa;
	outline-offset: -2px;
}

.mur-menu-icon {
	margin-right: 12px;
	font-size: 18px;
	width: 20px;
	display: inline-block;
	text-align: center;
}

/* オーバーレイ */
.mur-mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mur-mobile-overlay.active {
	display: block;
	opacity: 1;
}

/* 現在のページハイライト */
.mur-mobile-menu-list .current-menu-item a,
.mur-mobile-menu-list .current_page_item a {
	background-color: #e3f2fd;
	color: #1976d2;
	font-weight: 600;
}

.mur-mobile-menu-list .current-menu-item a::before,
.mur-mobile-menu-list .current_page_item a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background-color: #1976d2;
}

/* レスポンシブ設定 */
@media (max-width: 768px) {
	/* モバイルヘッダーを表示 */
	.mur-mobile-header {
		display: block;
	}
	
	/* デスクトップメニューを非表示 */
	.mur-desktop-header {
		display: none;
	}
	
	.mur-desktop-menu {
		display: none;
	}
	
	/* メインコンテンツの上部余白調整 */
	.mur-jpnumber {
		padding-top: 60px;
	}
	
	/* 検索セクションの調整 */
	.mur-search-section {
		margin-top: 0;
		padding-top: 20px;
	}
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
	.mur-mobile-header {
		display: none;
	}
	
	.mur-mobile-menu,
	.mur-mobile-overlay {
		display: none;
	}
}

/* アクセシビリティ - 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
	.mur-hamburger-line,
	.mur-mobile-menu,
	.mur-mobile-overlay,
	.mur-hamburger {
		transition: none;
	}
	
	.mur-mobile-menu-list a {
		transition: none;
	}
	
	.mur-mobile-menu-list a:hover {
		transform: none;
	}
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
	.mur-mobile-header {
		background-color: #1a1a1a;
		border-bottom-color: #333;
	}
	
	.mur-mobile-site-title a {
		color: #fff;
	}
	
	.mur-hamburger-line {
		background-color: #fff;
	}
	
	.mur-mobile-menu {
		background-color: #1a1a1a;
		border-left-color: #333;
	}
	
	.mur-mobile-menu-list a {
		color: #fff;
	}
	
	.mur-mobile-menu-list a:hover {
		background-color: #333;
	}
}
/* ========== 複数画像アップロード（修正版） ========== */

/* 画像アップロードコンテナ */
.mur-image-upload-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap; /* モバイル対応 */
}

/* 画像アップロード個別アイテム */
.mur-image-upload-item {
    flex: 1 1 auto;
    min-width: 0; /* flexアイテムの最小幅を0に */
    text-align: center;
}

/* 画像アップロードラベル（基本スタイル） */
.mur-image-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    min-height: 120px;
    width: 100%;
    box-sizing: border-box;
}

.mur-image-upload-label:hover {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

/* 画像番号 */
.mur-image-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 画像テキスト */
.mur-image-text {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* ファイル入力（非表示） */
.mur-image-input {
    display: none;
}

/* 画像プレビュー */
.mur-image-preview {
    margin-top: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mur-image-preview img {
    max-width: 100%;
    max-height: 150px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* 削除ボタン */
.mur-image-remove {
    margin-top: 10px;
    background-color: #dc3232;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.mur-image-remove:hover {
    background-color: #c92e2e;
}

/* ========== レスポンシブ対応 ========== */

/* PC版のレイアウト - 3枚横並び */
@media (min-width: 769px) {
    .mur-image-upload-container {
        flex-wrap: nowrap; /* PC版では折り返さない */
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .mur-image-upload-item {
        flex: 1 1 33.333%; /* 3等分 */
        max-width: calc(33.333% - 10px); /* gap分を考慮 */
    }
    
    .mur-image-upload-label {
        min-height: 140px; /* PC版では少し高く */
        padding: 25px 15px;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .mur-image-upload-item {
        flex: 1 1 33.333%;
        max-width: calc(33.333% - 8px);
    }
    
    .mur-image-upload-label {
        padding: 15px 8px;
        min-height: 120px;
    }
    
    .mur-image-text {
        font-size: 13px;
    }
}

/* モバイル版のレイアウト最適化 - コンパクト設計 */
@media (max-width: 768px) {
    /* コンテナの隙間を大幅に縮小 */
    .mur-image-upload-container {
        flex-direction: column;
        gap: 8px; /* 15px → 8px に大幅縮小 */
        margin-top: 6px;
    }
    
    /* 各アイテムの余白調整 */
    .mur-image-upload-item {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
    
    /* アップロードラベルをコンパクトに */
    .mur-image-upload-label {
        min-height: 65px; /* 100px → 65px に大幅縮小 */
        padding: 12px 15px; /* パディング縮小 */
        display: flex;
        flex-direction: row; /* 横並びレイアウト */
        align-items: center;
        justify-content: flex-start; /* 左寄せ */
        gap: 12px;
        border-width: 1px; /* ボーダーを細く */
        border-radius: 6px; /* 角丸を小さく */
        background-color: #f8f9fa; /* より薄い背景 */
    }
    
    .mur-image-upload-label:hover {
        background-color: #e9ecef;
        border-color: #0073aa;
    }
    
    /* 画像番号を小さく */
    .mur-image-number {
        margin-bottom: 0;
        width: 24px;
        height: 24px;
        font-size: 13px;
        flex-shrink: 0; /* 縮小を防ぐ */
    }
    
    /* テキストを調整 */
    .mur-image-text {
        margin: 0;
        font-size: 13px;
        color: #555;
    }
    
    /* プレビューエリアの最適化 */
    .mur-image-preview {
        margin-top: 6px; /* 大幅に縮小 */
        min-height: 0;
        height: auto;
    }
    
    /* プレビューが空の時は非表示 */
    .mur-image-preview:empty {
        display: none;
        margin: 0;
    }
    
    /* プレビュー画像のサイズ調整 */
    .mur-image-preview img {
        max-height: 100px; /* 150px → 100px */
        border-radius: 4px;
    }
    
    /* 削除ボタンをコンパクトに */
    .mur-image-remove {
        margin-top: 6px; /* 大幅に縮小 */
        padding: 4px 8px; /* パディング縮小 */
        font-size: 11px; /* フォントサイズ縮小 */
        border-radius: 3px;
    }
    
    /* フォームグループ全体の余白調整 */
    .mur-image-upload-group {
        margin-bottom: 18px; /* 35px → 18px */
    }
    
    /* フィールド説明文の余白調整 */
    .mur-field-description {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.3;
        color: #777;
    }
}

/* さらに小さい画面（480px以下）での最適化 */
@media (max-width: 480px) {
    .mur-image-upload-container {
        gap: 6px; /* さらに縮小 */
        margin-top: 4px;
    }
    
    .mur-image-upload-label {
        min-height: 60px; /* さらに縮小 */
        padding: 10px 12px;
        gap: 10px;
    }
    
    .mur-image-number {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .mur-image-text {
        font-size: 12px;
    }
    
    .mur-field-description {
        font-size: 10px;
    }
    
    /* フォーム全体のパディングも調整 */
    .mur-report-form-container {
        padding: 15px;
    }
}

/* プレビュー表示時の動的クラス対応 */
.mur-image-upload-item.has-image .mur-image-preview {
    display: block;
    margin-top: 6px;
}

.mur-image-upload-item.has-image .mur-image-upload-label {
    background-color: #e8f5e8;
    border-color: #28a745;
}

/* 大画面対応 */
@media (min-width: 1200px) {
    .mur-image-upload-container {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* フィールド説明文のスタイル */
.mur-field-description {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    text-align: center;
    clear: both;
}

/* モバイル/デスクトップ切り替え - スコア表示 */
@media (max-width: 768px) {
    .mur-score-mobile {
        display: inline;
    }
    .mur-score-desktop {
        display: none;
    }
    
    /* テーブルの調整 */
    .mur-data-table {
        font-size: 12px;
    }
    
    .mur-data-table td {
        padding: 8px 4px;
    }
}

@media (min-width: 769px) {
    .mur-score-mobile {
        display: none;
    }
    .mur-score-desktop {
        display: inline;
    }
}

/* reCAPTCHA バッジの位置調整 - オプション2：目立たない位置 */
@media (max-width: 768px) {
    .grecaptcha-badge {
        position: fixed !important;
        bottom: 10px !important;
        right: 10px !important;
        opacity: 0.7 !important;
        transform: scale(0.7) !important;
        transform-origin: right bottom !important;
        z-index: 1000 !important;
    }
    
    .grecaptcha-badge:hover {
        opacity: 1 !important;
        transform: scale(0.8) !important;
    }
}

/* ========== 報告ボタンとプラットフォームバッジ ========== */

/* Report User Button */
.mur-report-user-button:hover {
    background: #c82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Platform badges for home page and other templates */
.mur-platform-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff !important;
    text-decoration: none !important;
}

.mur-platform-yahoo-auction,
.mur-platform-yahoo {
    background: #ff9500 !important;
    color: #ffffff !important;
}

.mur-platform-mercari {
    background: #ff0211 !important;
    color: #ffffff !important;
}

.mur-platform-twitter,
.mur-platform-x {
    background: #000000 !important;
    color: #ffffff !important;
}

.mur-platform-instagram {
    background: #833AB4 !important;
    color: #ffffff !important;
}

.mur-platform-facebook {
    background: #1877f2 !important;
    color: #ffffff !important;
}

.mur-platform-tiktok {
    background: #000000 !important;
    color: #ffffff !important;
}

.mur-platform-youtube {
    background: #ff0000 !important;
    color: #ffffff !important;
}

.mur-platform-other {
    background: #666666 !important;
    color: #ffffff !important;
}

/* リンクの場合の対策 */
a.mur-platform-badge {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.mur-platform-badge:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

a.mur-platform-badge:visited {
    color: #ffffff !important;
}

/* 投稿者立場バッジ */
.mur-reporter-position-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-right: 8px;
}

.mur-position-buyer {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.mur-position-seller {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffb74d;
}

/* ユーザーIDサブ表示 */
.user-id-sub {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* フォーム用のオプション表示スタイル */
.mur-optional {
    font-weight: normal;
    color: #999;
}

/* フィールド説明テキスト */
.mur-field-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ユーザー名表示（seller_name優先） */
.user-name {
    font-size: inherit;
    font-weight: inherit;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .mur-reporter-position-badge {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
        text-align: center;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .user-id-sub {
        text-align: center;
    }
    
    .report-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .report-meta .report-date,
    .report-meta .reporter-name {
        margin-bottom: 8px;
    }
}
