/* ===== Font Converter Online ===== */
.fco, .fco-hub {
	--fco-main: #1a6fd8;
	--fco-main-dark: #1257ad;
	--fco-light: #eaf3ff;
	--fco-light-dark: #d4e7ff;
	--fco-bg: #f7f7f7;
	--fco-border: #dddddd;
	--fco-text: #333;
	--fco-sub: #6b7785;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--fco-text);
}
.fco *, .fco-hub * { box-sizing: border-box; }

/* ツール本体（pdf-tools-online と同じ幅） */
.fco {
	max-width: 960px;
	margin: 2.5em auto;
	padding: 0 16px;
}

/* ---------- 入力 ---------- */
.fco__input {
	background: var(--fco-bg);
	border: 1px solid var(--fco-border);
	border-top: 4px solid var(--fco-main);
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 28px;
}
.fco__label { display: block; font-weight: 700; font-size: 1.05em; line-height: 1.6; margin-bottom: 10px; color: var(--fco-main); }
.fco__ta {
	display: block;
	width: 100%;
	min-height: 96px;
	padding: 12px 14px;
	font-size: 18px;
	line-height: 1.6;
	border: 2px solid var(--fco-border);
	border-radius: 4px;
	background: #fff;
	color: inherit;
	resize: vertical;
	font-family: inherit;
}
.fco__ta:focus { outline: none; border-color: var(--fco-main); box-shadow: 0 0 0 3px rgba(26, 111, 216, .15); }
.fco__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--fco-sub); }
.fco__btns { display: flex; gap: 8px; }
.fco__note--solo { margin: 0 !important; }
.fco__note { margin: 14px 0 0 !important; font-size: 15px; color: var(--fco-text); line-height: 1.9; }

/* ---------- ボタン（青） ---------- */
.fco__btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	cursor: pointer;
	border: 1px solid var(--fco-main);
	background: var(--fco-main);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	padding: 10px 18px;
	border-radius: 4px;
	text-align: center;
	transition: .15s;
}
.fco__btn:hover { background: var(--fco-main-dark); border-color: var(--fco-main-dark); color: #fff; }
.fco__btn:active { transform: translateY(1px); }
.fco__btn:focus-visible { outline: 3px solid rgba(26, 111, 216, .35); outline-offset: 2px; }
.fco__btn--ghost { background: var(--fco-light); color: var(--fco-main); border-color: #9cc4f4; padding: 6px 14px; }
.fco__btn--ghost:hover { background: var(--fco-light-dark); color: var(--fco-main-dark); border-color: var(--fco-main); }
.fco__btn.is-done, .fco__btn.is-done:hover { background: #1a7f37; border-color: #1a7f37; }

/* ---------- 結果一覧 ---------- */
.fco__group + .fco__group { margin-top: 32px; }
.fco__gh { margin: 0 0 14px !important; padding: 4px 0 4px 12px !important; line-height: 1.6 !important; font-size: 1.1em; color: var(--fco-main); border: 0 !important; border-left: 5px solid var(--fco-main) !important; background: none !important; }
.fco__alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 12px;
	padding: 14px 16px;
	background: #fff4e5;
	border: 2px solid #f59e0b;
	border-left-width: 8px;
	border-radius: 4px;
	color: #7a3e00;
	font-weight: 700;
	line-height: 1.7;
}
.fco__alert strong { flex: none; padding: 1px 10px; background: #f59e0b; color: #fff; border-radius: 3px; font-size: .85em; }
.fco__gnote { margin: 0 0 16px !important; font-size: 15px; color: var(--fco-text); line-height: 1.9; }
.fco__row {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr) 140px;
	gap: 12px;
	align-items: center;
	padding: 12px 16px;
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid var(--fco-border);
	border-radius: 4px;
	transition: .15s;
}
.fco__row:hover { border-color: var(--fco-main); box-shadow: 0 4px 12px rgba(26, 111, 216, .12); }
.fco__name { font-size: 13px; font-weight: 700; color: var(--fco-sub); line-height: 1.5; }
.fco__name small { display: block; font-weight: 400; font-size: 12px; color: var(--fco-main); }
.fco__out {
	font-size: 22px;
	line-height: 1.7;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	min-height: 1.7em;
	font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Noto Sans Symbols 2", "Noto Sans Math", "Apple Symbols", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.fco__acts { display: flex; flex-direction: column; gap: 6px; }
.fco__acts .fco__btn { width: 100%; }
.fco__btn:disabled { opacity: .6; cursor: wait; }

.fco-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 20px);
	background: rgba(17, 24, 39, .92);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
	z-index: 99999;
}
.fco-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ツール一覧（カード） ---------- */
.fco-hub { max-width: 960px; margin: 2em auto; padding: 0 16px; }
.fco-hub__h { margin-top: 1.8em !important; margin-bottom: 1em !important; padding: 4px 0 4px 12px !important; line-height: 1.6 !important; font-size: 1.2em; color: var(--fco-main); border: 0 !important; border-left: 5px solid var(--fco-main) !important; background: none !important; }
.fco-hub__grid { display: grid; grid-template-columns: repeat(var(--fco-pc, 4), minmax(0, 1fr)); gap: 24px; }
.fco-hub__tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 24px;
	border: 1px solid var(--fco-border);
	border-top: 4px solid var(--fco-main);
	border-radius: 4px;
	background: #fff;
	color: var(--fco-text) !important;
	text-decoration: none !important;
	transition: .15s;
}
.fco-hub__tile:hover { box-shadow: 0 8px 20px rgba(26, 111, 216, .18); transform: translateY(-2px); }
.fco-hub__tile strong { font-size: 1.1em; color: var(--fco-main); line-height: 1.5; }
.fco-hub__tile span { font-size: .875em; color: var(--fco-sub); line-height: 1.7; }
.fco-hub__tile .fco-hub__icon { font-size: 2em; line-height: 1.2; color: var(--fco-main); }

/* ツール一覧ページ（親ページ）: 画面の全幅に広げ、カードを大きくする */
.fco-hub-page { overflow-x: hidden; }
.fco-hub--wide { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); padding: 0 clamp(16px, 4vw, 64px); }
.fco-hub--wide > .fco-hub__h, .fco-hub--wide > .fco-hub__grid { max-width: 1600px; margin-left: auto; margin-right: auto; }
.fco-hub--wide .fco-hub__grid { gap: 32px; }
.fco-hub--wide .fco-hub__tile { gap: 12px; padding: 44px 32px; border-top-width: 6px; }
.fco-hub--wide .fco-hub__tile .fco-hub__icon { font-size: 3.2em; }
.fco-hub--wide .fco-hub__tile strong { font-size: 1.35em; }
.fco-hub--wide .fco-hub__tile span { font-size: 1em; }

@media (max-width: 959px) {
	.fco-hub__grid { grid-template-columns: repeat(var(--fco-tab, 2), minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.fco-hub__grid { grid-template-columns: repeat(var(--fco-sp, 1), minmax(0, 1fr)); gap: 16px; }
	.fco-hub--wide { width: auto; margin-left: 0; margin-right: 0; padding: 0; }
	.fco-hub--wide .fco-hub__grid { gap: 16px; }
	.fco-hub--wide .fco-hub__tile { padding: 28px 20px; }
	.fco-hub--wide .fco-hub__tile .fco-hub__icon { font-size: 2.4em; }
	.fco__row { grid-template-columns: 1fr; gap: 6px; }
	.fco__out { font-size: 20px; }
	.fco__copy { padding: 12px 16px; }
}
