/* faviconジェネレーター（/favicon/・/en/favicon/ 共通） */
.fv .drop { padding: 36px 20px; }
.fv-start { margin: 14px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.fv-src { display: none; margin: 0; font-size: 14px; }
.fv-src b { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.fv.is-loaded .drop { padding: 14px 16px; text-align: left; }
.fv.is-loaded .drop .fv-drop-big { display: none; }
.fv.is-loaded .fv-src { display: block; }
.fv-drop-change { display: none; color: var(--accent-dark); text-decoration: underline; }
.fv.is-loaded .fv-drop-change { display: inline; }
.fv.is-loaded .fv-start { display: none; }

/* 押した瞬間に沈む（transition なしで即時）。処理中は aria-busy の印 */
.fv .btn:active:not([disabled]) { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(0,0,0,.18); background-size: 100% 100%; }
.fv .btn[aria-busy="true"] { cursor: progress; }
.fv .btn[aria-busy="true"]::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fv-spin .7s linear infinite; }
@keyframes fv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fv .btn[aria-busy="true"]::before { animation: none; } }

.fv-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.fv-done { margin: 0; font-weight: 700; font-size: 15px; color: var(--ok); }
.fv-done::before { content: "✔ "; }
.fv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fv-msg { min-height: 1.5em; margin: 8px 0 0; font-size: 13px; color: var(--ok); }
.fv-msg.is-new { animation: fv-flash .6s ease-out; }
@keyframes fv-flash { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fv-msg.is-new { animation: none; } }

.fv h3 { font-size: 14px; margin: 26px 0 10px; letter-spacing: .02em; }
.fv h3 small { font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-left: 6px; }

/* 使われる場面 */
.fv-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.fv-scene { margin: 0; border: 1px solid var(--hairline); background: #fff; }
.fv-scene figcaption { font-size: 12px; color: var(--ink-soft); padding: 8px 10px; border-top: 1px solid var(--hairline); }
.fv-tabbar { display: flex; align-items: flex-end; gap: 6px; padding: 10px 10px 0; }
.fv-tabbar.light { background: #dfe3e8; }
.fv-tabbar.dark { background: #1f1f1f; }
.fv-tab { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 200px; padding: 8px 12px; border-radius: 8px 8px 0 0; font-size: 12px; white-space: nowrap; }
.fv-tabbar.light .fv-tab { background: #fff; color: #1f2937; }
.fv-tabbar.dark .fv-tab { background: #3c3c3c; color: #e8eaed; }
.fv-tab span { overflow: hidden; text-overflow: ellipsis; }
.fv-tab canvas { width: 16px; height: 16px; flex: none; }
.fv-tab.other { flex: 0 1 110px; background: transparent !important; color: #6b7280 !important; }
.fv-serp { padding: 14px; font-family: Arial, "Hiragino Sans", sans-serif; }
.fv-serp-row { display: flex; gap: 10px; align-items: center; }
.fv-serp-ic { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e5e7eb; background: #f1f3f4; display: grid; place-items: center; flex: none; }
.fv-serp-ic canvas { width: 18px; height: 18px; }
.fv-serp-site { font-size: 14px; color: #202124; line-height: 1.3; }
.fv-serp-url { font-size: 12px; color: #4d5156; line-height: 1.3; }
.fv-serp-title { margin-top: 6px; font-size: 18px; color: #1a0dab; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-home { display: flex; justify-content: center; gap: 34px; padding: 18px 10px 12px; background: linear-gradient(135deg, #1e3a5f, #7c3aed); }
.fv-app { width: 76px; text-align: center; color: #fff; font-size: 11px; }
.fv-app canvas { display: block; width: 60px; height: 60px; margin: 0 auto 6px; }
.fv-app.ios canvas { border-radius: 14px; }
.fv-app.android canvas { border-radius: 50%; }
.fv-app span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-app small { display: block; opacity: .7; font-family: var(--mono); font-size: 10px; margin-top: 2px; }
.fv-theme-bar { height: 6px; }

/* 拡大（1画素を4倍で） */
.fv-zoomrow { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin-top: 14px; }
.fv-zoomrow figure { margin: 0; text-align: center; }
.fv-zoomrow canvas { image-rendering: pixelated; border: 1px solid var(--hairline); }
.fv-zoomrow figcaption { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

/* サイズ別 */
#previews { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.fv-cell { margin: 0; text-align: center; }
.fv-img { border: 1px solid var(--hairline); display: block; margin: 0 auto; }
.fv-label { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
.fv-label span { font-size: 10px; }

/* 切り抜き・余白 */
.fv-adjust { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.fv-adjust canvas { display: block; max-width: 240px; border: 1px solid var(--hairline); cursor: grab; touch-action: none; }
.fv-ctrls { display: grid; gap: 10px; }
.fv-ctrls label { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3.5em; gap: 10px; align-items: center; font-size: 13px; }
.fv-ctrls label.chk { display: flex; gap: 8px; }
.fv-ctrls input[type="range"] { width: 100%; }
.fv-ctrls input[disabled] { opacity: .4; }
.fv-ctrls output { font-family: var(--mono); font-size: 12px; text-align: right; }

/* サイト情報 */
.fv-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.fv-info label { display: grid; gap: 4px; font-size: 13px; }
.fv-info label small { color: var(--ink-soft); font-size: 12px; }
.fv-info input[type="text"] { width: 100%; box-sizing: border-box; }
.fv-info .color { display: flex; gap: 8px; align-items: center; }
.fv-warn { min-height: 1.3em; margin: 6px 0 0; font-size: 12px; color: #9a3412; }

pre.out {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-all;
}
.fv-copyrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fv-copyrow .fv-msg { margin: 0; }
.fv details { margin-top: 14px; }
.fv details summary { cursor: pointer; font-size: 13px; }
.fv details pre.out { margin-top: 10px; }

/* 作成されるファイル（狭い幅では1ファイル1枚のカード） */
.section table.fv-files td:first-child { white-space: nowrap; }
.section table.fv-files td:nth-child(2) { white-space: nowrap; }
.fv-src-list { font-size: 13px; line-height: 1.8; color: var(--ink-soft); padding-left: 1.2em; }
.fv-src-list li { margin-bottom: 8px; }
.fv-src-list a { color: inherit; }
.fv-src-list .when { font-size: 12px; }
.fv-all { margin: 14px 0 0; font-size: 14px; }

@media (max-width: 600px) {
  .fv-head { flex-direction: column; align-items: stretch; }
  .fv-actions .btn { flex: 1 1 0; text-align: center; padding: 10px 8px; font-size: 13px; }
  .fv-actions #zip-btn { flex-basis: 100%; }
  .fv-adjust { grid-template-columns: 1fr; }
  .fv-adjust canvas { margin: 0 auto; }
  .fv-info { grid-template-columns: 1fr; }
  .fv-ctrls label { grid-template-columns: 6em minmax(0, 1fr) 3em; }
  .section table.fv-files thead { display: none; }
  .section table.fv-files, .section table.fv-files tbody, .section table.fv-files tr, .section table.fv-files td { display: block; width: auto; }
  .section table.fv-files tr { border: 1px solid var(--hairline); padding: 10px 12px; margin-bottom: 10px; background: var(--panel); }
  .section table.fv-files td { border: 0; padding: 2px 0; white-space: normal !important; }
  .section table.fv-files td:first-child { font-weight: 500; }
  .section table.fv-files td:nth-child(2)::before { content: attr(data-k) "："; color: var(--ink-soft); font-family: inherit; }
}
