:root {
  --tool-card: #fff;
  --tool-text: #1f2937;
  --tool-border: #e5e7eb;
  --tool-primary: #2563eb;
}

.tool-page { max-width: 1120px; min-height:300px; margin: 0 auto; padding: 16px; }
.tool-page * { box-sizing: border-box; }

.tool-card {
  background: var(--tool-card);
  border: 1px solid var(--tool-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  padding: 24px;
  margin-bottom: 24px;
}

.tool-title { font-size: 20px; margin: 0 0 16px; color: var(--tool-text); }
.tool-form-layout { display: flex; gap: 16px; align-items: flex-start; }
.tool-form-main { flex: 1; min-width: 0; }
.tool-form-side { width: 320px; }
.tool-textarea { width: 100%; height: 220px; padding: 10px 12px; border: 1px solid var(--tool-border); border-radius: 8px; font-size: 15px; }
.tool-label { display: block; color: var(--tool-text); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.tool-select { width: 100%; padding: 10px 12px; border: 1px solid var(--tool-border); border-radius: 8px; font-size: 14px; }
.tool-btn { margin-top: 12px; padding: 10px 24px; background: var(--tool-primary); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, opacity .2s; }
.tool-btn:hover { background: #1d4ed8; text-decoration: none; }
.tool-btn:disabled { opacity: .6; cursor: not-allowed; }
.tool-btn i { margin-right: 6px; }
.tool-count, .tool-error { font-size: 14px; margin-top: 10px; }
.tool-error { color: #b91c1c; display: none; }

.tool-progress-wrap { display: none; margin-top: 12px; }
.tool-progress { height: 12px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.tool-progress span { display: block; height: 100%; width: 0; background: var(--tool-primary); }

.tool-result { display: none; }
.tool-result h2 { font-size: 28px; margin: 0; }
.tool-csv { background: #111827; color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; margin: 12px 0; font-size: 13px; font-weight: 700; }
.tool-table-wrap { overflow: auto; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-table th, .tool-table td { border: 1px solid #e5e7eb; padding: 8px; white-space: nowrap; }
.tool-table th { background: #1f2937; color: #fff; }



.tool-about {
	background: var(--tool-card);
	border: 1px solid var(--tool-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
	padding: 24px;
	margin-bottom: 24px;
	color: var(--tool-text);
	font-size: 14px;
	line-height: 1.8;
}

.tool-about h2 {
	font-size: 16px;
	margin: 20px 0 8px;
	color: var(--tool-text);
}

.tool-about { margin-top: 24px; }

.tool-about h2:first-child { margin-top: 0; }

.tool-about p { margin: 0 0 8px; }

.tool-about ul {
	margin: 0 0 8px;
	padding-left: 20px;
}

.tool-about li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .tool-page { padding: 24px 12px; }
  .tool-card { padding: 16px; margin-bottom: 16px; }
  .tool-title { font-size: 16px; }
  .tool-form-layout { display: block; }
  .tool-form-side { width: 100%; margin-top: 10px; }
  .tool-textarea { height: 150px; }
  .tool-btn { width: 100%; }
  .tool-result h2 { font-size: 24px; }
}

.tool-seo-link{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;border:1px solid #d1d5db;background:#fff;color:#374151;text-decoration:none}.tool-seo-link:hover{background:#f3f4f6;color:#1f2937;text-decoration:none}


/* whois-rdap ベースの互換クラス */
.tool-search-box {
	background: var(--tool-card);
	border: 1px solid var(--tool-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
	padding: 24px;
	margin-bottom: 24px;
}
.tool-search-box h1 { font-size: 20px; margin: 0 0 16px; color: var(--tool-text); }
.tool-search-form { display: flex; gap: 8px; }
.tool-search-form input[type="text"] { flex: 1; padding: 10px 14px; border: 1px solid var(--tool-border); border-radius: 8px; font-size: 15px; }
.tool-search-form select { padding: 10px 36px 10px 12px; border: 1px solid var(--tool-border); border-radius: 8px; font-size: 14px; min-width: 118px; }
.tool-search-form button { padding: 10px 24px; background: var(--tool-primary); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; }
@media (max-width: 640px) { .tool-search-form { flex-direction: column; gap: 4px; } }

.tool-table tbody tr:hover { background: #f3f4f6; }

#toast-container { position:fixed; bottom:80px; right:20px; z-index:999999; }
.tool-toast{display:none;background:#333;color:#fff;padding:12px 24px;border-radius:8px;font-size:14px;opacity:0;transform:translateY(20px)}
.tool-toast.success{background:#16a34a;color:#fff}.tool-toast.show{display:block;animation:toastIn .3s ease forwards}.tool-toast.fade-out{animation:toastOut .3s ease forwards}
.tool-progress-status{display:inline-block;margin-left:10px;padding:2px 8px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px;font-weight:700;vertical-align:middle}

.tool-full-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:28px;text-decoration:none}
.tool-domain-link{justify-content:flex-start;color:#2563eb;padding:0 2px}
.tool-domain-link:hover{text-decoration:none;color:#1d4ed8}

.tool-breadcrumb {
	margin-bottom: 16px;
	font-size: 13px;
	color: #6b7280;
}

.tool-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tool-breadcrumb li + li:before {
	content: ">";
	margin-right: 6px;
	color: #9ca3af;
}

.tool-breadcrumb a {
	color: #4b5563;
	text-decoration: none;
}

.tool-breadcrumb a:hover {
	color: #1f2937;
	text-decoration: underline;
}

@keyframes toastIn { to { opacity:1; transform:translateY(0); } }
@keyframes toastOut { to { opacity:0; transform:translateY(20px); } }

/* 利用回数制限モーダル */
.tools-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, .55);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.tools-modal-overlay.is-open { display: flex; }

.tools-modal {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
	max-width: 480px;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	color: var(--tool-text);
}

.tools-modal h3 {
	margin: 0 0 12px;
	font-size: 18px;
	color: #b91c1c;
}

.tools-modal p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.7;
}

.tools-modal a { color: var(--tool-primary); text-decoration: underline; }
.tools-modal a:hover { color: #1d4ed8; }

.tools-modal-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

.tools-modal-close {
	background: var(--tool-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.tools-modal-close:hover { background: #1d4ed8; }

/* 緩和条件の案内（フォーム下） */
.tool-eligible-help {
	font-size: 13px;
	color: #6b7280;
	margin-top: 6px;
	line-height: 1.6;
}
.tool-eligible-help a { color: var(--tool-primary); }

