/* ----------------------------------------
  テキストキット専用スタイル
---------------------------------------- */
/* 全体のレイアウト */
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;
  }
