/* ----------------------------------------
  テキストキット専用スタイル
---------------------------------------- */
/* 全体のレイアウト */
main {
	max-width: none;
}
h1 {
	font-size: 2em;
	margin-bottom: 1em;
}
.tools-page {
	width: 100%;
	margin: 3rem auto;
	padding: 0 1rem;
	font-family: system-ui, sans-serif;
	color: #333;
}
/* テキストエリア */
textarea {
	width: 100%;
	height: 500px;
	padding: 1rem;
	font-family: monospace;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	margin-bottom: 1rem;
	resize: vertical;
}
/* 文字数表示 */
.info {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 0.5rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.03em;
	transition: all 0.3s ease;
}
.info span {
	font-family: 'Orbitron', sans-serif;
	font-size: 1.4rem;
	color: #111;
	transition: all 0.3s ease;
	display: inline-block;
}
/* アニメーション */
@keyframes popCount {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}
#charCount {
	animation: popCount 0.3s ease;
}
/* ボタンコンテナ */
.controls {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 0 auto 1rem;
	max-width: 900px;
}
/* .link-button 上書き（共通のグラデは維持） */
.link-button {
	font-size: 1rem;
	padding: 0.75rem 2rem;
	border-radius: 12px;
	max-width: none;
	width: auto;
	min-width: 180px;
	text-align: center;
}
.sample-generator {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin-top: 1.5rem;
}
.sample-button {
	background: linear-gradient(45deg, #b4ec51 0%, #3b82f6 100%);
}
button.sample-button {
	display: block;
	width: 100%;
	max-width: 244px;
	box-sizing: border-box;
}
.sample-options {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.sample-options input, .sample-options select {
	padding: 0.6rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
}
/* モバイル対応 */
@media (max-width: 600px) {
	.link-button {
		width: 100%;
		min-width: auto;
	}
	.sample-options {
		flex-direction: column;
		width: 100%;
		align-items: stretch;
	}
	.sample-options input, .sample-options select, .sample-options label {
		width: 100%;
	}
	.sample-generator {
		width: 100%;
	}
	.sample-options {
		flex-direction: column;
		width: 100%;
		align-items: stretch;
	}
	.sample-options input, .sample-options select {
		width: auto;
		box-sizing: border-box;
	}
	.sample-options label {
		display: flex;
		align-items: center;
		gap: 0.5em;
		font-size: 0.95rem;
	}
	button.sample-button {
		width: 100%;
		font-size: 1rem;
		padding: 0.8rem 1rem;
		max-width: none;
	}
}
/* ThumbGrab */
.thumbgrab-page {
	max-width: 600px;
	margin: 0 auto;
	padding: 2rem 1rem;
  }
  .url-input {
	width: 100%;
	padding: 0.7rem;
	font-size: 1rem;
	margin-bottom: 1rem;
  }
  .thumbnail-preview {
	max-width: 100%;
	margin-top: 1rem;
	border-radius: 8px;
  }
  .btn-main, .btn-sub {
	padding: 0.6rem 1.2rem;
	font-size: 1rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
  }
  .btn-main {
	background: var(--main-color, #0c5);
	color: white;
	margin: 0 auto;
	display: block;
  }
  .btn-sub {
	background: #555;
	color: white;
	margin-top: 1rem;
	display: inline-block;
	text-decoration: none;
  }

/* Color Kit */
/* ----------------------------------------
  Dottiq Color Kit 用スタイル
---------------------------------------- */

.color-input {
	width: 100%;
	padding: 1rem;
	font-size: 1.25rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
	margin-bottom: 1rem;
  }

  .color-preview {
	width: 100%;
	height: 60px;
	border-radius: 6px;
	margin: 1rem auto;
	background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 20px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	font-size: 0.9rem;
	color: #333;
	text-shadow: 0 1px 1px #fff;
	box-sizing: border-box;
	transition: background 0.3s ease;
  }

  .conversion-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
  }

  .conversion-block {
	flex: 1 1 14em;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 1em;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	position: relative;
  }

  .conversion-block strong {
	font-size: 0.9em;
	color: #333;
	display: block;
	margin-bottom: 0.3em;
  }

  .conversion-value {
	font-family: 'Orbitron', monospace;
	font-size: 1.2rem;
	word-break: break-word;
	margin-bottom: 0.5em;
	transition: background 0.2s;
  }

  .conversion-value.animated {
	background: #e0f8e0;
  }

  .copy-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: #fff;
	border: 1px solid #ccc;
	padding: 0.3em 0.6em;
	font-size: 0.85em;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
  }

  .copy-btn:hover {
	background: #e5e5e5;
  }

  /* コピー完了メッセージ */
  .copied-msg {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #222;
	color: #fff;
	padding: 0.6em 1.2em;
	border-radius: 6px;
	font-size: 0.95em;
	white-space: nowrap;
	display: inline-block;
	max-width: 90vw;
	opacity: 0.95;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  @keyframes fadeOut {
	0% { opacity: 1; }
	80% { opacity: 1; }
	100% { opacity: 0; }
  }

  @keyframes popCount {
	0% { transform: scale(1); }
	50% { transform: scale(1.2); }
	100% { transform: scale(1); }
  }

  /* トグル付き見出しラッパー */
  .colorkit_h3_wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 2rem;
	width: 100%;
  }

  .colorkit_h3_wrapper h3 {
	font-size: 1.1em;
	margin: 0;
  }

  .copy-format-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 999px;
	padding: 0.2em 0.5em;
	position: relative;
	height: 2.2em;
	box-sizing: border-box;
  }

  .copy-format-toggle input[type="radio"] {
	display: none;
  }

  .copy-format-toggle label {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.85em;
	font-weight: bold;
	color: #333;
	position: relative;
	z-index: 2;
	padding: 0 0.8em;
  }

  .copy-format-toggle .toggle-indicator {
	content: "";
	position: absolute;
	width: 50%;
	height: 100%;
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	border-radius: 999px;
	top: 0;
	left: 0;
	transition: transform 0.3s ease;
	z-index: 1;
  }

  .copy-format-toggle input[value="rgb"]:checked ~ .toggle-indicator {
	transform: translateX(100%);
  }

  .copy-format-toggle input[value="hex"]:checked ~ .toggle-indicator {
	transform: translateX(0);
  }

  .copy-format-toggle label {
	color: #000;
  }

  .copy-format-toggle input[value="rgb"]:checked ~ label[for="rgb"],
  .copy-format-toggle input[value="hex"]:checked ~ label[for="hex"] {
	color: #fff;
	z-index: 3;
  }

/* ----------------------------------------
  Tool UI Components : Compact Controls（改訂版）
---------------------------------------- */

/* コンパクトな設定バー */
.tool-controls--compact {
	align-items: center;
	gap: 1rem;
}

/* インライン数値入力（文字数など） */
.inline-number-control {
	display: flex;
	align-items: baseline;
}

/* 数字のみ・ダイヤル感 */
/* インライン数値入力（文字数など） */
.inline-number-control input {
	width: 3.5em;
	text-align: center;
	font-size: 1.6rem;
	font-family: 'Orbitron', sans-serif;
	border: none;
	border-bottom: 2px solid #ccc;
	background: transparent;
	padding: 0.1em 0;
	transition: border-color 0.2s ease, transform 0.15s ease;
}

/* フォーカス時の「気持ちよさ」 */
.inline-number-control input:focus {
	outline: none;
	border-bottom-color: #222;
	transform: scale(1.05);
}

/* 数値変更時の軽い反応（JSでクラス付与） */
.inline-number-control input.pulse {
	animation: numberPulse 0.25s ease;
}

@keyframes numberPulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.12);
	}

	100% {
		transform: scale(1);
	}
}

/* number input のスピンボタンを完全に消す */
.inline-number-control input::-webkit-outer-spin-button,
.inline-number-control input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.inline-number-control input[type=number] {
	-moz-appearance: textfield;
}

/* チップ型オプション（チェックボックス置き換え） */
.option-chips {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.option-chips label {
	border: 1px solid #ccc;
	border-radius: 999px;
	padding: 0.35em 0.95em;
	cursor: pointer;
	font-size: 0.85rem;
	background: #fff;
	user-select: none;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.15s ease;
}

.option-chips label:hover {
	transform: translateY(-1px);
}

.option-chips input {
	display: none;
}

/* ON状態 */
.option-chips label:has(input:checked) {
	background: #222;
	color: #fff;
	border-color: #222;
}

/* ON/OFF切替時の軽い反発感 */
.option-chips label:has(input:checked),
.option-chips label:has(input:not(:checked)) {
	animation: chipToggle 0.2s ease;
}

@keyframes chipToggle {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.08);
	}

	100% {
		transform: scale(1);
	}
}

/* ツール出力エリア（短文向け） */
/* パスワードなどランダム文字列の表示 */
.tool-output {
	width: 100%;
	height: 4rem;
	resize: none;

	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		Consolas,
		"Liberation Mono",
		monospace;

	font-size: 1.15rem;
	letter-spacing: 0.04em;
}

/* ----------------------------------------
  World Search Lens
---------------------------------------- */
.tool-search-desc {
	color: #555;
	font-size: 0.95em;
	line-height: 1.7;
	margin-bottom: 1.2em;
}

.tool-search-samples {
	font-size: 0.85em;
	color: #555;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 0.7em 1em;
	margin-bottom: 1.5em;
	line-height: 1.8;
}

.tool-search-samples strong {
	display: block;
	margin-bottom: 0.2em;
	color: #333;
}

.tool-search-input-area {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	align-items: center;
	margin-bottom: 1.5em;
	box-sizing: border-box;
	width: 100%;
}

.tool-search-input-area input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: 0.6em 0.8em;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 6px;
	height: auto;
	box-sizing: border-box;
}

.tool-search-input-area .link-button {
	flex-shrink: 0;
	width: auto;
	margin: 0;
}

@media (max-width: 480px) {
	.tool-search-input-area {
		flex-direction: column;
		align-items: stretch;
	}
	.tool-search-input-area input[type="text"] {
		width: 100%;
	}
}

.tool-search-results {
	margin-top: 0.5em;
}

.tool-search-lang-block {
	padding: 0.8em 0;
	border-bottom: 1px solid #eee;
}

.tool-search-lang-block:last-child {
	border-bottom: none;
}

.tool-search-lang-name {
	font-weight: bold;
	font-size: 0.95em;
	margin-bottom: 0.3em;
}

.tool-search-translated {
	color: #333;
	margin-bottom: 0.6em;
	font-size: 0.95em;
}

.tool-search-buttons {
	display: flex;
	gap: 0.6em;
	max-width: 380px;
}

.tool-search-buttons a {
	flex: 1;
	display: block;
	padding: 0.9em 1em;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	border: 1px solid #bbb;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	background: #fafafa;
	transition: background 0.15s;
}

.tool-search-buttons a:hover {
	background: #ececec;
}
