export function formatDuration(months: number): string { const years = Math.floor(months / 12); const m = months % 12; if (years === 0) return `${m}ヶ月`; if (m === 0) return `${years}年`; return `${years}年${m}ヶ月`; }